app/models/spotlight/feature_page.rb in blacklight-spotlight-3.0.0.rc4 vs app/models/spotlight/feature_page.rb in blacklight-spotlight-3.0.0.rc5
- old
+ new
@@ -12,11 +12,9 @@
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
- belongs_to :thumbnail, class_name: 'Spotlight::FeaturedImage', dependent: :destroy, optional: true
-
before_validation unless: :top_level_page? do
self.exhibit = top_level_page_or_self.exhibit
end
def display_sidebar?