Sha256: 9f95df7b32326de2fff6057a6637c3c7589acba1f33c9d8635dfbc553f48d47e
Contents?: true
Size: 442 Bytes
Versions: 1
Compression:
Stored size: 442 Bytes
Contents
module EnjuInterLibraryLoan module InterLibraryLoanItem def self.included(base) base.extend ClassMethods end module ClassMethods def enju_inter_library_loan_item_model include InstanceMethods has_many :inter_library_loans, dependent: :destroy end end module InstanceMethods def inter_library_loaned? true if self.inter_library_loans.size > 0 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_inter_library_loan-0.3.0.beta.1 | lib/enju_inter_library_loan/item.rb |