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
#destroy ⇒ Object
19 20 21 |
# File 'lib/mongo_mapper/plugins/callbacks.rb', line 19 def destroy run_callbacks(:destroy) { super } end |
#initialize ⇒ Object
7 8 9 |
# File 'lib/mongo_mapper/plugins/callbacks.rb', line 7 def initialize(*) run_callbacks(:initialize) { super } end |
#initialize_from_database ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/mongo_mapper/plugins/callbacks.rb', line 11 def initialize_from_database(*) run_callbacks(:initialize) do run_callbacks(:find) do super end end end |
#touch ⇒ Object
23 24 25 |
# File 'lib/mongo_mapper/plugins/callbacks.rb', line 23 def touch(*) run_callbacks(:touch) { super } end |