app/models/checkin.rb in enju_circulation-0.0.43 vs app/models/checkin.rb in enju_circulation-0.0.45
- old
+ new
@@ -1,6 +1,7 @@
class Checkin < ActiveRecord::Base
+ attr_accessible :item_identifier
default_scope :order => 'checkins.id DESC'
scope :on, lambda {|date| {:conditions => ['created_at >= ? AND created_at < ?', date.beginning_of_day, date.tomorrow.beginning_of_day]}}
has_one :checkout
belongs_to :item
belongs_to :librarian, :class_name => 'User'
@@ -8,10 +9,9 @@
validates_uniqueness_of :item_id, :scope => :basket_id, :message => I18n.t('checkin.already_checked_in')
validates_presence_of :item_id, :message => I18n.t('checkin.item_not_found')
validates_presence_of :basket_id
- attr_protected :user_id
attr_accessor :item_identifier
def self.per_page
10
end