Hi Sean,
I'd appreciate if you could look into it - my Ruby-fu is not good
enough yet. ::Boolean didn't make the trick.
Thanks,
Francisco
2010/6/2 Sean Cribbs :
> Frank,
>
> It's probably a combination of two things that I need to investigate. First,
> 1.9 is much more picky about resolving
Frank,
It's probably a combination of two things that I need to investigate. First,
1.9 is much more picky about resolving namespaces (try ::Boolean?). Second, I
probably need to make sure that the casting.rb file is eagerly loaded and not
lazily.
Sean Cribbs
Developer Advocate
Basho Technolo
My User model has some properties
property :name, String
property :email, String, :presence => true
property :items, Array, :default => []
(...)
Now when I want to use a Boolean:
property :admin, Boolean
I get the following:
ruby-1.9.1-p378 > user = User.find('t...@gmail.com')
NameErr