Module: ActiveRecord::Suppressor::ClassMethods
- Defined in:
- lib/active_record/suppressor.rb
Instance Method Summary collapse
Instance Method Details
#suppress(&block) ⇒ Object
32 33 34 35 36 37 |
# File 'lib/active_record/suppressor.rb', line 32 def suppress(&block) SuppressorRegistry.suppressed[name] = true yield ensure SuppressorRegistry.suppressed[name] = false end |