Closed sbellware closed 10 years ago
That's a bug. I'll be fixing it for 1.0.0 release. Thanks for the report.
@sbellware this is now fixed however there are also two issues in your code example. You need to pass in type of the attribute (now it will raise) + you need to call super in the included hook. Then it'll work just fine.
This works:
But if I use the
extend ClassMethods
pattern in theFoo
module, the initializer of theBar
class now has no initializer arguments:However, if the
ClassMethods
pattern is moved to another module, and included in theFoo
module, everything works fine:Note also that
Baz
can be included beforeVirtus
and it still works.Is there a constraint on using this pattern with Virtus objects?
Thanks! Scott