app/models/spotlight/exhibit.rb in blacklight-spotlight-3.0.0.rc4 vs app/models/spotlight/exhibit.rb in blacklight-spotlight-3.0.0.rc5

- old
+ new

@@ -55,10 +55,11 @@ has_many :custom_search_fields, dependent: :delete_all has_many :feature_pages, -> { for_default_locale }, extend: FriendlyId::FinderMethods has_many :groups, dependent: :delete_all has_many :job_trackers, as: :on, dependent: :delete_all + has_many :bulk_updates, dependent: :delete_all has_many :main_navigations, dependent: :delete_all has_many :resources has_many :roles, as: :resource, dependent: :delete_all has_many :searches, dependent: :destroy, extend: FriendlyId::FinderMethods has_many :solr_document_sidecars, dependent: :delete_all @@ -133,10 +134,10 @@ def requested_by roles.first&.user end def reindex_progress - @reindex_progress ||= ReindexProgress.new(self) + @reindex_progress ||= BackgroundJobProgress.new(self, job_class: Spotlight::ReindexExhibitJob) end def available_locales @available_locales ||= languages.pluck(:locale) end