Sha256: 391d2a6bb33814c3585dc5625d71315d6fd9ac56911689af09d6be27d5e9df27
Contents?: true
Size: 665 Bytes
Versions: 14
Compression:
Stored size: 665 Bytes
Contents
class Accept < ApplicationRecord default_scope { order('accepts.id DESC') } belongs_to :basket belongs_to :item, touch: true belongs_to :librarian, class_name: 'User' 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 # updated_at :datetime #
Version data entries
14 entries across 14 versions & 1 rubygems