Module: PageAttachmentAssociations
- Defined in:
- app/models/page_attachment_associations.rb
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'app/models/page_attachment_associations.rb', line 2 def self.included(base) base.class_eval { has_many :attachments, :class_name => "PageAttachment", :dependent => :destroy, :order => 'position' include InstanceMethods accepts_nested_attributes_for :attachments, :allow_destroy => true } end |