I seem to recall reading that engines will not allow you to override
your plugin models in the main application.  Is that true?  If so, is
there a simple hack that would allow me to override an association?

I have the following defined in my plugin

class Tag < ActiveRecord::Base
  has_many_polymorphs :taggables,
    :from => [:products],
    :through => :taggings,
    :dependent => :destroy
end

This is fine except my host app uses has_many_polymorphs (HMP) plugin
for tagging of other stuff.  The problem is the association needs to
include the additional classes in my main app.  So I need something
app specific:

class Tag < ActiveRecord::Base
  has_many_polymorphs :taggables,
    :from => [:photos, :products],
    :through => :taggings,
    :dependent => :destroy
end

Obviously I don't want to change this in the plugin.  What are my options?

Regards,

Sean
_______________________________________________
Engine-Users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to