On Wed, Jan 14, 2009 at 4:04 PM, Joshua Abbott
<[email protected]> wrote:
> 1.) Create a new class that these 4 AR models would inherit from.

This won't actually work. Rails would try to use the same table to
store all of the models if you inherit from one.  See the "Single
Table Inheritance" section from
http://api.rubyonrails.org/classes/ActiveRecord/Base.html

> 2.) Add a module to lib and include that in these 4 models.

If you don't go the plugin route (which I would probably recommend),
this would be the way to go.


-- 
--------------------------------------------------------------------------------
Training by Collective Idea: Ruby on Rails training in a vacation setting
http://training.collectiveidea.com – San Antonio, TX – Jan 20-23

--~--~---------~--~----~------------~-------~--~----~
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