class Admin::ResourceController

def rescue_action(exception)

def rescue_action(exception)
  case exception
  when ActiveRecord::RecordInvalid
    response_for :invalid
  when ActiveRecord::StaleObjectError
    response_for :stale
  when ActiveRecord::RecordNotFound
    response_for :not_found
  else
    super
  end
end