Closed sbrauer closed 10 years ago
I think this may be a simpler example of the the same issue as https://github.com/solnic/virtus/issues/260
Btw: if the multiple includes are done on one line (include Foo, Bar
) only the attributes in the first module work.
Seems like a bug. I'll work on fixing it which should close both this and #260
I'm using version 1.0.2 and found that including multiple Virtus modules in one model doesn't seem to work. It appears to be the case that only the attributes from one module work. Consider the following demo:
Here's the output:
I expected the instance of Demo to have attributes :foo and :bar with default values, but it only has the :bar attribute. It seems to be the case that only the last module included works.
Am I doing something wrong, or is this a bug?