app/models/spotlight/exhibit.rb in blacklight-spotlight-1.3.0 vs app/models/spotlight/exhibit.rb in blacklight-spotlight-1.4.0
- old
+ new
@@ -11,10 +11,10 @@
scope :published, -> { where(published: true) }
scope :unpublished, -> { where(published: false) }
scope :ordered_by_weight, -> { order('weight ASC') }
- paginates_per 50
+ paginates_per 48
extend FriendlyId
friendly_id :title, use: [:slugged, :finders]
validates :title, presence: true
validates :slug, uniqueness: true