app/models/spotlight/feature_page.rb in blacklight-spotlight-3.0.0.alpha.9 vs app/models/spotlight/feature_page.rb in blacklight-spotlight-3.0.0.alpha.10
- old
+ new
@@ -3,10 +3,12 @@
module Spotlight
##
# Feature pages
class FeaturePage < Spotlight::Page
extend FriendlyId
- friendly_id :title, use: %i[slugged scoped finders history], scope: %i[exhibit locale]
+ friendly_id :title, use: %i[slugged scoped finders history], scope: %i[exhibit locale] do |config|
+ 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
accepts_nested_attributes_for :child_pages