Sha256: d69fb5017e8fe1cc6673c5b4a1b3d36ec22afab6ab0a7603d85f32a47f7ccc3e
Contents?: true
Size: 759 Bytes
Versions: 4
Compression:
Stored size: 759 Bytes
Contents
class Accept < ActiveRecord::Base default_scope { order('accepts.id DESC') } belongs_to :basket belongs_to :item, touch: true belongs_to :librarian, class_name: 'User' enju_circulation_accept_model if defined?(EnjuCirculation) validates_uniqueness_of :item_id, message: I18n.t('accept.already_accepted') validates_presence_of :item_id, message: I18n.t('accept.item_not_found') validates_presence_of :basket_id attr_accessor :item_identifier paginates_per 10 end # == Schema Information # # Table name: accepts # # id :integer not null, primary key # basket_id :integer # item_id :integer # librarian_id :integer # created_at :datetime not null # updated_at :datetime not null #
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
enju_library-0.1.0.pre43 | app/models/accept.rb |
enju_library-0.1.0.pre42 | app/models/accept.rb |
enju_library-0.1.0.pre41 | app/models/accept.rb |
enju_library-0.1.0.pre40 | app/models/accept.rb |