You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As described in the example "should work when include is last" of specialisation_spec.rb, including a module after calling attributes results in unexpected behaviour:
One approach that might fix both this issue and issue #2 could be to add the accessors, equality, etc. methods when the attributable class is initialized to create a new object, and not when the call to attributes is made.
louismrose
changed the title
Included a module after a call to attributes doesn't work
Including a module after a call to attributes doesn't work
Apr 11, 2014
As described in the example "should work when include is last" of
specialisation_spec.rb
, including a module after calling attributes results in unexpected behaviour:When the
include
occurs before the call toattributes
, the error disappears.The text was updated successfully, but these errors were encountered: