Module: MmDirtier::Plugins::Dirtier

Defined in:
lib/mm_dirtier/plugins/dirtier.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.configure(model) ⇒ Object



12
13
14
# File 'lib/mm_dirtier/plugins/dirtier.rb', line 12

def self.configure(model)

end

.included(model) ⇒ Object



6
7
8
9
10
# File 'lib/mm_dirtier/plugins/dirtier.rb', line 6

def self.included(model)
  model.plugin MongoMapper::Plugins::Dirty unless
    model.plugins.include?(MongoMapper::Plugins::Dirty)
  model.plugin MmDirtier::Plugins::Dirtier
end