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
Instance Method Details
#destroy ⇒ Object
24 25 26 |
# File 'lib/gollum_rails/callbacks.rb', line 24 def destroy(*) run_callbacks(:destroy) { super } end |
#save ⇒ Object
28 29 30 |
# File 'lib/gollum_rails/callbacks.rb', line 28 def save run_callbacks(:save) { super } end |