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.6 spec/dummy/app/models/manifestation.rb