Class: Oxen::PrintersController

Inherits:
AbstractResourcesController
  • Object
show all
Defined in:
app/controllers/oxen/printers_controller.rb

Instance Method Summary collapse

Instance Method Details

#updateObject



3
4
5
6
7
8
9
# File 'app/controllers/oxen/printers_controller.rb', line 3

def update
  authorize 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