app/models/spotlight/exhibit.rb in blacklight-spotlight-0.19.2 vs app/models/spotlight/exhibit.rb in blacklight-spotlight-0.20.0

- old
+ new

@@ -7,18 +7,17 @@ include Spotlight::ExhibitDefaults include Spotlight::ExhibitDocuments scope :published, -> { where(published: true) } scope :unpublished, -> { where(published: false) } + scope :ordered_by_weight, -> { order('weight ASC') } paginates_per 50 extend FriendlyId friendly_id :title, use: [:slugged, :finders] validates :title, presence: true validates :slug, uniqueness: true - - default_scope { order('weight ASC') } acts_as_tagger acts_as_taggable delegate :blacklight_config, to: :blacklight_configuration serialize :facets, Array