Method: ActiveRecord::Base.without_indexing
- Defined in:
- lib/indexed_search/disabler.rb
.without_indexing ⇒ Object
9 10 11 12 13 |
# File 'lib/indexed_search/disabler.rb', line 9 def self.without_indexing prev_indexing = (@@no_indexing ||= false) @@no_indexing = true yield.tap { @@no_indexing = prev_indexing } end |