123456789_123456789_123456789_123456789_123456789_

Module: ActiveRecord::Suppressor::ClassMethods

Relationships & Source Files
Defined in: activerecord/lib/active_record/suppressor.rb

Instance Method Summary

Instance Method Details

#suppress(&block)

[ GitHub ]

  
# File 'activerecord/lib/active_record/suppressor.rb', line 42

def suppress(&block)
  previous_state = Suppressor.registry[name]
  Suppressor.registry[name] = true
  yield
ensure
  Suppressor.registry[name] = previous_state
end