Module: Customs::ControlFlow
- Defined in:
- lib/customs/control_flow.rb
Instance Method Summary collapse
-
#create ⇒ Object
Other actions.
- #destroy ⇒ Object
-
#index ⇒ Object
GET actions.
- #update ⇒ Object
Instance Method Details
#create ⇒ Object
Other actions
20 21 22 23 |
# File 'lib/customs/control_flow.rb', line 20 def create save_resource success_response end |
#destroy ⇒ Object
30 31 32 33 |
# File 'lib/customs/control_flow.rb', line 30 def destroy destroy_resource success_response end |
#index ⇒ Object
GET actions
8 9 10 |
# File 'lib/customs/control_flow.rb', line 8 def index respond_with resource_collection end |
#update ⇒ Object
25 26 27 28 |
# File 'lib/customs/control_flow.rb', line 25 def update save_resource success_response end |