app/models/spotlight/contact.rb in blacklight-spotlight-3.6.0.beta6 vs app/models/spotlight/contact.rb in blacklight-spotlight-3.6.0.beta7
- old
+ new
@@ -5,10 +5,10 @@
# Exhibit curator contact information
class Contact < ActiveRecord::Base
belongs_to :exhibit, touch: true, optional: true
scope :published, -> { where(show_in_sidebar: true) }
default_scope { order('weight ASC') }
- serialize :contact_info, Hash
+ serialize :contact_info, Hash, coder: YAML
extend FriendlyId
friendly_id :name, use: %i[slugged scoped finders], scope: :exhibit
belongs_to :avatar, class_name: 'Spotlight::ContactImage', dependent: :destroy, optional: true