Sha256: 43feb95d65a32480c8ca60a305b642b6228f3d4118d79bd379f7afbf0ebce9d0
Contents?: true
Size: 422 Bytes
Versions: 1
Compression:
Stored size: 422 Bytes
Contents
module KnowledgeBase::Concerns::Models::Sectionables::Attachments::List extend ActiveSupport::Concern included do has_many :sections, as: :sectionable, dependent: :destroy has_many :attachments, dependent: :destroy, inverse_of: :list, foreign_key: :attachment_list_id accepts_nested_attributes_for :attachments, allow_destroy: true def to_s "#{super} ##{id}: #{title}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
knowledge_base-0.2.0 | lib/knowledge_base/concerns/models/sectionables/attachments/list.rb |