app/models/spotlight/exhibit.rb in blacklight-spotlight-1.0.0 vs app/models/spotlight/exhibit.rb in blacklight-spotlight-1.1.0
- old
+ new
@@ -5,9 +5,11 @@
class Exhibit < ActiveRecord::Base
include Spotlight::ExhibitAnalytics
include Spotlight::ExhibitDefaults
include Spotlight::ExhibitDocuments
+ has_paper_trail
+
scope :published, -> { where(published: true) }
scope :unpublished, -> { where(published: false) }
scope :ordered_by_weight, -> { order('weight ASC') }
paginates_per 50