Module: MongoMapper::Plugins::Callbacks

Extended by:
ActiveSupport::Concern
Included in:
Document
Defined in:
lib/mongo_mapper/plugins/callbacks.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



7
8
9
# File 'lib/mongo_mapper/plugins/callbacks.rb', line 7

def destroy
  run_callbacks(:destroy) { super }
end

#touchObject



11
12
13
# File 'lib/mongo_mapper/plugins/callbacks.rb', line 11

def touch(*)
  run_callbacks(:touch) { super }
end