Module: CommonPluginsAddition

Defined in:
lib/mongo_mapper_ext.rb

Class Method Summary collapse

Class Method Details

.included(model) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/mongo_mapper_ext.rb', line 21

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