deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 1/2] CIMI: Removed already fixed Struct constant removal
Date Wed, 03 Oct 2012 14:40:57 GMT
From: Michal Fojtik <mfojtik@redhat.com>


Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/lib/cimi/models/base.rb |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/server/lib/cimi/models/base.rb b/server/lib/cimi/models/base.rb
index e36ad6e..86a8188 100644
--- a/server/lib/cimi/models/base.rb
+++ b/server/lib/cimi/models/base.rb
@@ -103,10 +103,6 @@ class CIMI::Model::Base
     def <<(model)
       clone_base_schema unless base_schema_cloned?
       member_name = model.name.split("::").last
-      if ::Struct.const_defined?("CIMI_#{member_name}")
-        puts "Removing struct"
-        ::Struct.send(:remove_const, "CIMI_#{member_name}")
-      end
       member_symbol = member_name.underscore.pluralize.to_sym
       members = CIMI::Model::Schema::Array.new(member_symbol)
       members.struct.schema.attributes = model.schema.attributes
-- 
1.7.10.2


Mime
View raw message