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

Booleans can't be used in models #41

Closed
frank06 opened this issue Jul 2, 2010 · 3 comments
Closed

Booleans can't be used in models #41

frank06 opened this issue Jul 2, 2010 · 3 comments
Labels

Comments

@frank06
Copy link

frank06 commented Jul 2, 2010

uninitialized constant User::Boolean is raised when I define property :admin, Boolean in class User include Ripple::Document.

My current workaround is to copy/paste Ripple's module Boolean just before the model class declaration.

Error during failsafe response: 
ActionView::Template::Error (Session contains objects whose class definition isn't available.
Remember to require the classes for all objects kept in the session.
(Original exception: uninitialized constant User::Boolean [NameError])
) in /Users/ftreacy/.rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb:



127.0.0.1 - - [02/Jul/2010 11:50:48] "GET /users/test@gmail.com HTTP/1.0" 500 - 0.2028
@seancribbs
Copy link
Contributor

I think we need to eagerly require the casting enhancements. I'll move it up.

@seancribbs
Copy link
Contributor

Frank can you verify that your issue is fixed by http://github.com/seancribbs/ripple/commit/4e532a0940d5523412c1790512804dd112d38759

@frank06
Copy link
Author

frank06 commented Jul 11, 2010

It does. Thank you.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants