app/models/spotlight/feature_page.rb in blacklight-spotlight-3.0.0.alpha.2 vs app/models/spotlight/feature_page.rb in blacklight-spotlight-3.0.0.alpha.3

- old
+ new

@@ -3,10 +3,10 @@ module Spotlight ## # Feature pages class FeaturePage < Spotlight::Page extend FriendlyId - friendly_id :title, use: [:slugged, :scoped, :finders, :history], scope: [:exhibit, :locale] + friendly_id :title, use: %i[slugged scoped finders history], scope: %i[exhibit locale] has_many :child_pages, class_name: 'Spotlight::FeaturePage', inverse_of: :parent_page, foreign_key: 'parent_page_id' belongs_to :parent_page, class_name: 'Spotlight::FeaturePage', optional: true accepts_nested_attributes_for :child_pages