Skip to Content Skip to Search

module ActiveRecord::Suppressor::ClassMethods

Public instance methods

Source code 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

Definition files