class ActionController::Responder

def json_resource_errors

def json_resource_errors
  { errors: resource.errors }
end