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