Reviving a 2 year old thread, how is everyone extending their models in
engines these days?

I'm attempting to move Substruct to a module system as described here:
http://www.ruby-forum.com/topic/51339


...but I'm getting a ton of errors like this one:

"undefined method `has_and_belongs_to_many' for Substruct::Tag:Module"

So what good is that method if you have to redeclare the associations in
the class, and not within the module itself?

Any ideas or tricks that people are using to get around this? Copying /
pasting models into app/models to extend is getting tiresome, but this
workaround seems pretty hackish as well.
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Engine-Users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to