ActiveRecord::Suppressor::ClassMethods Ruby on Rails 5.1.2 Module ActiveRecord::Suppressor::ClassMethods activerecord/lib/active_record/suppressor.rb Methods S suppress Instance Public methods suppress(&block) Link Source: show | on GitHub # File activerecord/lib/active_record/suppressor.rb, line 32 def suppress(&block) previous_state = SuppressorRegistry.suppressed[name] SuppressorRegistry.suppressed[name] = true yield ensure SuppressorRegistry.suppressed[name] = previous_state end