Method: Grape::Exceptions::Validation#as_json
- Defined in:
- lib/grape/exceptions/validation.rb
#as_json(*_args) ⇒ Object
Remove all the unnecessary stuff from Grape::Exceptions::Base like status and headers when converting a validation error to json or string
20 21 22 |
# File 'lib/grape/exceptions/validation.rb', line 20 def as_json(*_args) to_s end |