On 3 June 2011 18:34, Kevin <[email protected]> wrote: > Out of curiosity what should one do if one wants to have a method inherited > by all models? Does rails already have a file for adding methods to the > model base class? Or do we just ram our methods into ActiveModel and call > it a day? I have run into almost the opposite scenario as the thread > starter. Mainly with certain integrity checks I've needed to perform.
Can one derive a class for ActiveModel, put the common methods in there, and then derive the models from that? I have not tried it. Colin -- 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.

