Sha256: 9deda61256064f8cfb3d9328b28eece8c062da71ac0ba8e26833902caafb6508

Contents?: true

Size: 520 Bytes

Versions: 1

Compression:

Stored size: 520 Bytes

Contents

module Unidom::Accession::Concerns::AsPostFulfilled

  extend ActiveSupport::Concern

  self.included do |includer|

    has_many :post_fulfillments, class_name: 'Unidom::Accession::PostFulfillment', as:     :fulfilled
    has_many :fulfiller_people,  through:    :post_fulfillments,                   source: :fulfiller, source_type: 'Unidom::Party::Person'

    #def is_fulfilled_as_post!(fulfiller, opened_at: Time.now)
    #  post_fulfillments.create! fulfiller: fulfiller, 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_fulfilled.rb