module MongoMapper::Plugins::Callbacks

Public Class Methods

new(*) click to toggle source
Calls superclass method
# File lib/mongo_mapper/plugins/callbacks.rb, line 7
def initialize(*)
  run_callbacks(:initialize) { super }
end

Public Instance Methods

destroy() click to toggle source
Calls superclass method
# File lib/mongo_mapper/plugins/callbacks.rb, line 19
def destroy
  run_callbacks(:destroy) { super }
end
initialize_from_database(*) click to toggle source
Calls superclass method
# 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(*) click to toggle source
Calls superclass method
# File lib/mongo_mapper/plugins/callbacks.rb, line 23
def touch(*)
  run_callbacks(:touch) { super }
end

Private Instance Methods

create(*) click to toggle source
Calls superclass method
# File lib/mongo_mapper/plugins/callbacks.rb, line 33
def create(*)
  run_callbacks(:create) { super }
end
create_or_update(*) click to toggle source
Calls superclass method
# File lib/mongo_mapper/plugins/callbacks.rb, line 29
def create_or_update(*)
  run_callbacks(:save) { super }
end
update(*) click to toggle source
Calls superclass method
# File lib/mongo_mapper/plugins/callbacks.rb, line 37
def update(*)
  run_callbacks(:update) { super }
end