Module: ActiveRecord::Suppressor::ClassMethods
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/suppressor.rb
Instance Method Summary collapse
Instance Method Details
#suppress(&block) ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/suppressor.rb', line 40 def suppress(&block) previous_state = Suppressor.registry[name] Suppressor.registry[name] = true yield ensure Suppressor.registry[name] = previous_state end |