On Mar 13, 2:12 pm, Luke <kickingje...@gmail.com> wrote: > Thanks! One last question though, how would the constructor signature look > for that. Apperently
I wouldn't override the initialiser if I were you. You need to preserve existing semantics so that (for example) active record can load your objects from the database. If you really want to, make sure that you preserve existing calling conventions (ie number of arguments, pass through the block etc.) and don't forget to call super Fred > > def initialize(file) > # do stuff > end > > doesn't work -- 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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.