Module: MarkMapper::Plugins::Callbacks

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

Instance Method Summary collapse

Instance Method Details

#destroyObject


19
20
21
# File 'lib/mark_mapper/plugins/callbacks.rb', line 19

def destroy
  run_callbacks(:destroy) { super }
end

#initializeObject


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

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

#initialize_from_databaseObject


11
12
13
14
15
16
17
# File 'lib/mark_mapper/plugins/callbacks.rb', line 11

def initialize_from_database(*)
  run_callbacks(:initialize) do
    run_callbacks(:find) do
      super
    end
  end
end

#touchObject


23
24
25
# File 'lib/mark_mapper/plugins/callbacks.rb', line 23

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