Module: GollumRails::Callbacks

Extended by:
ActiveSupport::Concern
Included in:
Page
Defined in:
lib/gollum_rails/callbacks.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

CALLBACKS =
[
  :after_initialize,
  :before_save, :around_save, :after_save, :before_create, :around_create,
  :after_create, :before_update, :around_update, :after_update,
  :before_destroy, :around_destroy, :after_destroy, :after_commit
]

Instance Method Summary collapse

Instance Method Details

#destroyObject



24
25
26
# File 'lib/gollum_rails/callbacks.rb', line 24

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

#saveObject



28
29
30
# File 'lib/gollum_rails/callbacks.rb', line 28

def save
  run_callbacks(:save) { super }
end