Module: FileContainer::Associations

Defined in:
app/models/file_container.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



21
22
23
24
25
26
27
28
# File 'app/models/file_container.rb', line 21

def self.included(base)
  base.instance_eval do
    has_many :file_attachments, {
      :as => :attachable,
      :dependent => :destroy
    }
  end
end