I have written one plugin which defines some models.
I have a number of other plugins that depend on the first plugin
I would like to have the later plugins extend the model in the first
by adding ''has_many'' associations to it.
I have tried like this:
module ActiveRecord
class Base
class FirstModel
has_many :second_models
end
end
end
and various other variants but I can''t seem to be able to call the
''has_man'' method on a model that is already defined. Is there
a simple
way to achieve this? It seems like there should be.
Any suggestions would be appreciated.
-felix
--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---