Module: Grape::ErrorFormatter::Json
- Extended by:
- Base
- Defined in:
- lib/grape/error_formatter/json.rb
Class Method Summary collapse
Methods included from Base
Class Method Details
.call(message, backtrace, options = {}, env = nil, original_exception = nil) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/grape/error_formatter/json.rb', line 9 def call(, backtrace, = {}, env = nil, original_exception = nil) result = (present(, env)) result = (result, backtrace, , original_exception) if result.is_a?(Hash) ::Grape::Json.dump(result) end |