# File lib/rails-api/public_exceptions.rb, line 10 def call(env) exception = env["action_dispatch.exception"] status = env["PATH_INFO"][1..-1] request = ActionDispatch::Request.new(env) content_type = request.formats.first body = { :status => status, :error => exception.message } render(status, content_type, body) end
Generated with the Darkfish Rdoc Generator 2.