跳至内容 跳至搜索
方法
S

实例公共方法

suppress(&block)

# 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