> [...]
>> 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
>> ?
> 
> Can't you just call Model.new(:the => 'params', :go => 'here') ?


<smack> I've never used that form, but I should have remembered it.

For my immediate need that won't work, but that's a function of the 
domain problem in this instance (turns out what I wanted can't be solved 
by passing params into new anyway). For general purpose needs, that 
would probably work, so I'll implement it in the API for this abstrated 
system to at least support passsing attributes upon a new().

Thx.

-- gw

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to