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 -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/c0m6mg_0F-8J. For more options, visit https://groups.google.com/groups/opt_out.
You are fine as long as you know what you do. Am Freitag, 21. Dezember 2012 17:01:51 UTC+1 schrieb Dan Brooking:> > 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 >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
lol, so basically that means for me, the answer is no :) On Fri, Dec 21, 2012 at 2:05 PM, Crispin Schäffler < crispinschaeffler-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> You are fine as long as you know what you do. > > Am Freitag, 21. Dezember 2012 17:01:51 UTC+1 schrieb Dan Brooking: > >> 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 >> > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > 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. > > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Can''t you use an after_initialize callback? -- Dheeraj Kumar On Saturday 22 December 2012 at 4:07 AM, Dan Brooking wrote:> lol, so basically that means for me, the answer is no :) > > > On Fri, Dec 21, 2012 at 2:05 PM, Crispin Schäffler <crispinschaeffler@gmail.com (mailto:crispinschaeffler-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org)> wrote: > > You are fine as long as you know what you do. > > > > Am Freitag, 21. Dezember 2012 17:01:51 UTC+1 schrieb Dan Brooking: > > > 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 > > > > > > > > > -- > > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm). > > 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. > > > > > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com (mailto:rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > For more options, visit https://groups.google.com/groups/opt_out. > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
That''s what I ended up doing. On Friday, December 21, 2012, Dheeraj Kumar wrote:> Can''t you use an after_initialize callback? > > -- > Dheeraj Kumar > > On Saturday 22 December 2012 at 4:07 AM, Dan Brooking wrote: > > lol, so basically that means for me, the answer is no :) > > > On Fri, Dec 21, 2012 at 2:05 PM, Crispin Schäffler < > crispinschaeffler-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:_e({}, ''cvml'', > ''crispinschaeffler-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org'');>> wrote: > > You are fine as long as you know what you do. > > Am Freitag, 21. Dezember 2012 17:01:51 UTC+1 schrieb Dan Brooking: > > 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 > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:_e({}, ''cvml'', ''rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org'');> > . > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:_e({}, ''cvml'', > ''rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org'');>. > 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. > > > > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:_e({}, ''cvml'', ''rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org'');> > . > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:_e({}, ''cvml'', > ''rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org'');>. > For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<javascript:_e({}, ''cvml'', ''rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org'');> > . > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:_e({}, ''cvml'', > ''rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org'');>. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.