app/models/spotlight/resource.rb in blacklight-spotlight-0.12.0 vs app/models/spotlight/resource.rb in blacklight-spotlight-0.12.1

- old
+ new

@@ -16,11 +16,10 @@ :last_indexed_estimate, :last_indexed_count, :last_index_elapsed_time, :last_indexed_finished], coder: JSON - around_index :reindex_with_lock around_index :reindex_with_logging after_index :commit def becomes_provider klass = Spotlight::ResourceProvider.for_resource(self) @@ -131,15 +130,9 @@ end end end protected - - def reindex_with_lock - with_lock do - yield - end - end def reindex_with_logging time_start = Time.zone.now update(indexed_at: time_start,