app/models/spotlight/contact.rb in blacklight-spotlight-3.0.0.alpha.2 vs app/models/spotlight/contact.rb in blacklight-spotlight-3.0.0.alpha.3
- old
+ new
@@ -8,10 +8,10 @@
scope :published, -> { where(show_in_sidebar: true) }
default_scope { order('weight ASC') }
serialize :contact_info, Hash
extend FriendlyId
- friendly_id :name, use: [:slugged, :scoped, :finders], scope: :exhibit
+ friendly_id :name, use: %i[slugged scoped finders], scope: :exhibit
belongs_to :avatar, class_name: 'Spotlight::ContactImage', dependent: :destroy, optional: true
accepts_nested_attributes_for :avatar, update_only: true, reject_if: proc { |attr| attr['iiif_tilesource'].blank? }
before_save do