On 12/30/06, Peter Michaux <[EMAIL PROTECTED]> wrote: > > As for defining models in plugins - what do you feel is the main difficulty? > > Perhaps it has changed but when i was using Engines many months ago, I > had to define the contents of the model in a module and then mix that > module into the model. Sorry if that is worded so clunky but hopeful > you know what I'm talking about. It isn't that it is really difficult > it just doesn't seem as smooth or friendly as being able to define the > model exactly how it would be defined in a plain vanilla Rails app.
You can certainly define a model as you would in a Rails application - the only reason for moving functionality into a module is to make it possible to override selected methods within the application. There may be better ways to achieve this now (for instance, putting your plugin models into a module). -- * J * ~ _______________________________________________ engine-developers mailing list [email protected] http://lists.rails-engines.org/listinfo.cgi/engine-developers-rails-engines.org
