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
28 29 30 |
# File 'lib/resources/rest_actions.rb', line 28 def create save_resource end |
#destroy ⇒ Object
43 44 45 |
# File 'lib/resources/rest_actions.rb', line 43 def destroy destroy_resource end |
#edit ⇒ Object
32 33 34 |
# File 'lib/resources/rest_actions.rb', line 32 def edit end |
#index ⇒ Object
20 21 22 |
# File 'lib/resources/rest_actions.rb', line 20 def index end |
#new ⇒ Object
24 25 26 |
# File 'lib/resources/rest_actions.rb', line 24 def new end |
#show ⇒ Object
36 37 |
# File 'lib/resources/rest_actions.rb', line 36 def show end |
#update ⇒ Object
39 40 41 |
# File 'lib/resources/rest_actions.rb', line 39 def update save_resource end |