Module: Resources::RestActions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/resources/rest_actions.rb
Instance Method Summary collapse
- #create ⇒ Object
- #destroy ⇒ Object
- #edit ⇒ Object
- #index ⇒ Object
- #new ⇒ Object
- #show ⇒ Object
- #update ⇒ Object
Instance Method Details
#create ⇒ Object
26 27 28 |
# File 'lib/resources/rest_actions.rb', line 26 def create save_resource end |
#destroy ⇒ Object
41 42 43 |
# File 'lib/resources/rest_actions.rb', line 41 def destroy destroy_resource end |
#edit ⇒ Object
30 31 32 |
# File 'lib/resources/rest_actions.rb', line 30 def edit end |
#index ⇒ Object
18 19 20 |
# File 'lib/resources/rest_actions.rb', line 18 def index end |
#new ⇒ Object
22 23 24 |
# File 'lib/resources/rest_actions.rb', line 22 def new end |
#show ⇒ Object
34 35 |
# File 'lib/resources/rest_actions.rb', line 34 def show end |
#update ⇒ Object
37 38 39 |
# File 'lib/resources/rest_actions.rb', line 37 def update save_resource end |