lib/fiona7/shadow_classes.rb in infopark_fiona7-0.70.0.3 vs lib/fiona7/shadow_classes.rb in infopark_fiona7-0.71.0.0
- old
+ new
@@ -43,19 +43,23 @@
self.const_set(
name,
Class.new(scrivito_obj_class) do
include ::ShadowClassesSupport
end
- )
+ ).tap do |klass|
+ klass.register_attribute_definitions(name)
+ end
end
elsif type == 'Widget'
parent_class = 'Widget'.safe_constantize || Scrivito::BasicWidget
self.const_set(
name,
Class.new(parent_class) do
include ::ShadowClassesSupport
end
- )
+ ).tap do |klass|
+ klass.register_attribute_definitions(name)
+ end
end
end
def self.scrivito_obj_class