app/models/concerns/spotlight/user.rb in blacklight-spotlight-0.31.0 vs app/models/concerns/spotlight/user.rb in blacklight-spotlight-0.32.0
- old
+ new
@@ -4,9 +4,10 @@
module User
extend ActiveSupport::Concern
included do
has_many :roles, class_name: 'Spotlight::Role', dependent: :destroy
has_many :exhibits, class_name: 'Spotlight::Exhibit', through: :roles, source: 'resource', source_type: 'Spotlight::Exhibit'
+ has_many :reindexing_log_entries, class_name: 'Spotlight::ReindexingLogEntry'
scope :with_roles, -> { where(id: Spotlight::Role.distinct.pluck(:user_id)) }
before_create :add_default_roles
end