lib/mongo_mapper_ext.rb in rails-ext-0.2.18 vs lib/mongo_mapper_ext.rb in rails-ext-0.2.19
- old
+ new
@@ -18,8 +18,10 @@
module CommonPluginsAddition
def self.included(model)
model.plugin MongoMapper::Plugins::DefaultScope
model.plugin MongoMapper::Plugins::AttributesCache
model.plugin MongoMapper::Plugins::Micelaneous
+
+ model.attr_protected :id, :_id, :_type, :created_at, :updated_at
end
end
MongoMapper::Document.append_inclusions(CommonPluginsAddition)
\ No newline at end of file