module Roqua::Responders::ApiErrorsResponder

Public Instance Methods

json_resource_errors() click to toggle source
# File lib/roqua/responders/api_errors_responder.rb, line 10
def json_resource_errors
  {:errors => {resource.class.name.underscore => resource.errors}}
end