method

suppress

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: ClassMethods
suppress(&block) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/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
Register or log in to add new notes.