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

:nodoc:



22
23
24
# File 'lib/gollum_rails/callbacks.rb', line 22

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

#saveObject

:nodoc:



26
27
28
# File 'lib/gollum_rails/callbacks.rb', line 26

def save #:nodoc:
  run_callbacks(:save) { super }
end