Sha256: f14cd363975ddefc5da0b8d7d5b24346cfdf5c28baf93a60aea946e454f086a0

Contents?: true

Size: 304 Bytes

Versions: 1

Compression:

Stored size: 304 Bytes

Contents

module KnowledgeBase::Concerns::Models::Sectionables::Attachments::Attachment
  extend ActiveSupport::Concern

  included do
    belongs_to :list, foreign_key: :attachment_list_id

    mount_uploader :file, KnowledgeBase::GenericFileUploader

    validates :title, :file, :list, presence: true
  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/attachment.rb