Sha256: 0b075956cb3a14a144d416394a91e874f738e8f22b3d8e56d410477955e1d3a7

Contents?: true

Size: 364 Bytes

Versions: 41

Compression:

Stored size: 364 Bytes

Contents

class Manifestation < ActiveRecord::Base
  include EnjuCirculation::Manifestation
  belongs_to :carrier_type
  has_many :exemplifies, :foreign_key => 'manifestation_id'
  has_many :items, :through => :exemplifies
  has_many :reserves, :foreign_key => :manifestation_id

  searchable do
    boolean :reservable do
      items.for_checkout.exists?
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
enju_circulation-0.0.47 spec/dummy/app/models/manifestation.rb
enju_circulation-0.0.46 spec/dummy/app/models/manifestation.rb
enju_circulation-0.0.45 spec/dummy/app/models/manifestation.rb
enju_circulation-0.0.43 spec/dummy/app/models/manifestation.rb
enju_circulation-0.0.42 spec/dummy/app/models/manifestation.rb
enju_circulation-0.0.41 spec/dummy/app/models/manifestation.rb
enju_circulation-0.0.40 spec/dummy/app/models/manifestation.rb
enju_circulation-0.0.39 spec/dummy/app/models/manifestation.rb
enju_circulation-0.0.38 spec/dummy/app/models/manifestation.rb
enju_circulation-0.0.37 spec/dummy/app/models/manifestation.rb
enju_circulation-0.0.36 spec/dummy/app/models/manifestation.rb
enju_circulation-0.0.35 spec/dummy/app/models/manifestation.rb
enju_circulation-0.0.34 spec/dummy/app/models/manifestation.rb
enju_circulation-0.0.33 spec/dummy/app/models/manifestation.rb
enju_circulation-0.0.32 spec/dummy/app/models/manifestation.rb
enju_circulation-0.0.31 spec/dummy/app/models/manifestation.rb
enju_circulation-0.0.30 spec/dummy/app/models/manifestation.rb
enju_circulation-0.0.29 spec/dummy/app/models/manifestation.rb
enju_circulation-0.0.28 spec/dummy/app/models/manifestation.rb
enju_circulation-0.0.27 spec/dummy/app/models/manifestation.rb