Module: GollumRails::Callbacks
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
-
#destroy ⇒ Object
:nodoc:.
-
#save ⇒ Object
:nodoc:.
Instance Method Details
#destroy ⇒ Object
:nodoc:
22 23 24 |
# File 'lib/gollum_rails/callbacks.rb', line 22 def destroy(*) #:nodoc: run_callbacks(:destroy) { super } end |
#save ⇒ Object
:nodoc:
26 27 28 |
# File 'lib/gollum_rails/callbacks.rb', line 26 def save #:nodoc: run_callbacks(:save) { super } end |