app/models/spotlight/exhibit.rb in blacklight-spotlight-0.11.0 vs app/models/spotlight/exhibit.rb in blacklight-spotlight-0.12.0
- old
+ new
@@ -11,9 +11,11 @@
extend FriendlyId
friendly_id :title, use: [:slugged, :finders]
validates :title, presence: true
+ default_scope { order('weight ASC') }
+
acts_as_tagger
delegate :blacklight_config, to: :blacklight_configuration
serialize :facets, Array
# Note: friendly id associations need to be 'destroy'ed to reap the slug history