Module: OldApiResource::Callbacks::InstanceMethods
- Defined in:
- lib/old_api_resource/callbacks.rb
Instance Method Summary collapse
- #create_with_callbacks(*args) ⇒ Object
- #destroy_with_callbacks(*args) ⇒ Object
- #save_with_callbacks(*args) ⇒ Object
- #update_with_callbacks(*args) ⇒ Object
Instance Method Details
#create_with_callbacks(*args) ⇒ Object
27 28 29 30 31 |
# File 'lib/old_api_resource/callbacks.rb', line 27 def create_with_callbacks(*args) _run_create_callbacks do create_without_callbacks(*args) end end |
#destroy_with_callbacks(*args) ⇒ Object
39 40 41 42 43 |
# File 'lib/old_api_resource/callbacks.rb', line 39 def destroy_with_callbacks(*args) _run_destroy_callbacks do destroy_without_callbacks(*args) end end |
#save_with_callbacks(*args) ⇒ Object
21 22 23 24 25 |
# File 'lib/old_api_resource/callbacks.rb', line 21 def save_with_callbacks(*args) _run_save_callbacks do save_without_callbacks(*args) end end |
#update_with_callbacks(*args) ⇒ Object
33 34 35 36 37 |
# File 'lib/old_api_resource/callbacks.rb', line 33 def update_with_callbacks(*args) _run_update_callbacks do update_without_callbacks(*args) end end |