lib/scrivito/basic_obj.rb in scrivito_sdk-1.3.0.rc2 vs lib/scrivito/basic_obj.rb in scrivito_sdk-1.3.0.rc3
- old
+ new
@@ -18,9 +18,11 @@
# Always use {Obj} or a subclass of {Obj}.
# @see http://scrivito.com/objects-widgets-classes CMS objects, widgets, and classes
# @api public
#
class BasicObj
+ extend ::ActiveSupport::DescendantsTracker
+
PublicSystemAttributeDefinition = Class.new(AttributeDefinition)
SYSTEM_ATTRIBUTES = AttributeDefinitionCollection.new(
'_id' => PublicSystemAttributeDefinition.new(:_id, :string),
'_last_changed' => PublicSystemAttributeDefinition.new(:_last_changed, :date),