Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uninitialized constant ValidationError #264

Closed
bithavoc opened this issue Oct 22, 2012 · 0 comments
Closed

uninitialized constant ValidationError #264

bithavoc opened this issue Oct 22, 2012 · 0 comments

Comments

@bithavoc
Copy link
Contributor

Hi,

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

@dblock dblock closed this as completed in 24e0760 Oct 23, 2012
dblock added a commit that referenced this issue Oct 23, 2012
The class ValidationError should be inside Grape module. Fixes #264
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants