There's no drawback - you're manually doing what the 'code mixing' process for controllers and helpers does automatically :)
- James On 2/23/07, Chuck Vose <[EMAIL PROTECTED]> wrote: > On 2/21/07, Peter Bex <[EMAIL PROTECTED]> wrote: > > While thinking about this, it occurred to me that it's very easy to let Ruby > > override the engine's model: > > > > In RAILS_ROOT/app/models/foo.rb: > > > > require RAILS_ROOT + "/vendor/plugins/my_engine/app/models/foo" > > > > class Foo < ActiveRecord::Base > > end > > I knew there had to be a better way. I just started monkeying around > with this myself but I'm pleased you beat me to it. You would think > that someone would have thought of this before though. Maybe there's > some hidden risk that you and I are both missing? > > -Chuck Vose > _______________________________________________ > engine-developers mailing list > [email protected] > http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org > -- * J * ~ _______________________________________________ engine-developers mailing list [email protected] http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org
