Class: Oxen::PrintersController
- Inherits:
-
AbstractResourcesController
- Object
- AbstractResourcesController
- Oxen::PrintersController
- Defined in:
- app/controllers/oxen/printers_controller.rb
Instance Method Summary collapse
Instance Method Details
#update ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/controllers/oxen/printers_controller.rb', line 3 def update resource flash[:notice] = t('.success.updated', resource: resource_class.to_s ) if resource.update_attributes(resource_params) && update_parenthood respond_with resource, location: "/admin/accounts/#{resource.account.id}" rescue Exception => e scoop_from_error e end |