app/models/checkin.rb in enju_circulation-0.0.71 vs app/models/checkin.rb in enju_circulation-0.1.0.pre

- old
+ new

@@ -11,12 +11,10 @@ validates_presence_of :item_id, :basket_id validate :available_for_checkin?, :on => :create attr_accessor :item_identifier - def self.per_page - 10 - end + paginates_per 10 def available_for_checkin? if item.blank? errors[:base] << I18n.t('checkin.item_not_found') return