Closed rawsyntax closed 11 years ago
Ran into a namespacing issue using virtus in a module:
module Admin include Virtus attribute :admin, Boolean end
Including that module in a class would give `const_missing': uninitialized constant Boolean (NameError)
`const_missing': uninitialized constant Boolean (NameError)
However, spelling it out as Virtus::Attribute::Boolean resolved the error
Virtus::Attribute::Boolean
Thanks. That should be considered as a bug. So I'm gonna fix it rather than to tell people to treat Boolean in a special way :)
Ran into a namespacing issue using virtus in a module:
Including that module in a class would give
`const_missing': uninitialized constant Boolean (NameError)
However, spelling it out as
Virtus::Attribute::Boolean
resolved the error