Method: Testapi::ModelsController#update
- Defined in:
- app/controllers/testapi/models_controller.rb
#update ⇒ Object
19 20 21 22 23 |
# File 'app/controllers/testapi/models_controller.rb', line 19 def update @object = model.find(params[:id]) @object.update!(attributes) render_object end |