engine-users

[Prev] Thread [Next]  |  [Prev] Date [Next]

[Engine-Users] adding belongs_to to an application model from an engine Raphael Bauduin Thu Oct 30 07:01:01 2008

Hi,

I have an Instance model in my application, to which I want to add a
has_many :web_file_attachment from the plugin.
I tried putting this in my plugin's app/model/instance.rb :
  class Instance < ActiveRecord::Base
    has_many :web_file_attachments , :dependent => :destroy
  end

but it doesn't seem to work.

What's the way to get this working?

Thanks

Raph

-- 
Web database: http://www.myowndb.com
Free Software Developers Meeting: http://www.fosdem.org
_______________________________________________
Engine-Users mailing list
[EMAIL PROTECTED]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org