Sha256: 1a689a5eef9b99c515ed0ee94c7e93794341003d94452b0ca5e5c0bc3fb90958
Contents?: true
Size: 724 Bytes
Versions: 2
Compression:
Stored size: 724 Bytes
Contents
module Workarea module Catalog class ProductDocument include ApplicationDocument include Ordering extend Dragonfly::Model field :type, type: String field :document_name, type: String field :document_uid, type: String field :display_name, type: String embedded_in :product, class_name: "Workarea::Catalog::Product", inverse_of: :product_documents, touch: true dragonfly_accessor :document, app: :workarea def respond_to?(sym, *args) super || document.respond_to?(sym) end def method_missing(sym, *args, &block) document.send(sym, *args, &block) if document.respond_to?(sym) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-product_documents-1.0.1 | app/models/workarea/catalog/product_document.rb |
workarea-product_documents-1.0.0 | app/models/workarea/catalog/product_document.rb |