cgriego/active_attr — Issue #34: Initialization methods do not chain
Author: cgriego
Created: 2011-10-26 04:36:14+00:00
State: open

This means that right now you can't mix MassAssignment and Attributes together and both work.

1. I tried just calling super, and that works great in 1.9 but fails in 1.8 because Object#initialize in 1.8 doesn't accept any arguments while 1.9 will accept any number of arguments. 1.8 fails with ArgumentError.
2. I tried using alias method chaining, but as soon as the class defines its own #initialize then it overwrites the carefully chained initialization methods.
3. I tried and considered other things as well…
4. I think the best shot is to do alias method chaining inside of an anonymous Module similar to how ActiveModel::AttributeMethods works.