app/models/spotlight/feature_page.rb in blacklight-spotlight-3.0.0.rc2 vs app/models/spotlight/feature_page.rb in blacklight-spotlight-3.0.0.rc3
- old
+ new
@@ -4,10 +4,10 @@
##
# Feature pages
class FeaturePage < Spotlight::Page
extend FriendlyId
friendly_id :title, use: %i[slugged scoped finders history], scope: %i[exhibit locale] do |config|
- config.reserved_words.concat(%w[update_all])
+ config.reserved_words&.concat(%w[update_all])
end
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