You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having some trouble using rescue_from ValidationError, turns out the class ValidationError is not being loaded even when I see the autoload listed in https://github.com/intridea/grape/blob/v0.2.2/lib/grape.rb#L17.
I tried in Rails and rackup, same result.
Version: grape-0.2.2
Ruby: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]
Workaround: put require 'grape/exceptions/validation_error' at the beginning of your api.rb file
The text was updated successfully, but these errors were encountered:
Hi,
I'm having some trouble using
rescue_from ValidationError
, turns out the classValidationError
is not being loaded even when I see the autoload listed inhttps://github.com/intridea/grape/blob/v0.2.2/lib/grape.rb#L17
.I tried in
Rails
andrackup
, same result.Version: grape-0.2.2
Ruby:
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0]
Workaround: put
require 'grape/exceptions/validation_error'
at the beginning of your api.rb fileThe text was updated successfully, but these errors were encountered: