I have a case where I am abstracting the creation of models. After a
fair bit of indirection, I eventually get around to making a .new call.
I need to be able to pass params to that .new call.
I know I can't use def initialize() in an AR model (rather frustrating).
So, I have found some references to after_initialize, but that doesn't
I see several threads on people trying to use after_initialize, but no
conclusive answers to the same errors I am seeing -- undefined method
Example refc: http://www.ruby-forum.com/topic/86173
My after_initialize is just this simple code:
@asset_path = asset_path
So either a) what is the proper technique for using after_initialize, or
b) is there another way I can pass params to an AR model in a .new call
-- greg willits