Sha256: feef9aab2bda51047ede83453edd0dce3c35aba214b555e9cbf74b493d85830e
Contents?: true
Size: 513 Bytes
Versions: 1
Compression:
Stored size: 513 Bytes
Contents
module Unidom::Accession::Concerns::AsPostFulfiller extend ActiveSupport::Concern self.included do |includer| has_many :post_fulfillments, class_name: 'Unidom::Accession::PostFulfillment', as: :fulfiller has_many :fulfilled_posts, through: :post_fulfillments, source: :fulfilled, source_type: 'Unidom::Position::Post' #def fulfill_post!(fulfilled, opened_at: Time.now) # post_fulfillments.create! fulfilled: fulfilled, opened_at: opened_at #end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-accession-1.2 | app/models/unidom/accession/concerns/as_post_fulfiller.rb |