override initialize on ActiveRecord?

56 views
Skip to first unread message

Dan Brooking

unread,
Dec 21, 2012, 11:01:51 AM12/21/12
to rubyonra...@googlegroups.com
Quick question... your answer will determine whether I have follow up questions or not.

Is it ok to override initialize on an ActiveRecord model?  I've read some thing that say it's ok, some that say it's not... just wanted to get a general consensus.

Thanks
Dan
Message has been deleted

Dan Brooking

unread,
Dec 21, 2012, 5:37:57 PM12/21/12
to rubyonra...@googlegroups.com
lol, so basically that means for me, the answer is no :)


On Fri, Dec 21, 2012 at 2:05 PM, Crispin Schäffler <crispins...@gmail.com> wrote:
You are fine as long as you know what you do.
--
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 rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Ykouz-coIWkJ.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Dheeraj Kumar

unread,
Dec 21, 2012, 8:11:18 PM12/21/12
to rubyonra...@googlegroups.com
Can't you use an after_initialize callback?

-- 
Dheeraj Kumar

Dan Brooking

unread,
Dec 21, 2012, 8:56:12 PM12/21/12
to rubyonra...@googlegroups.com
That's what I ended up doing.
Reply all
Reply to author
Forward
0 new messages