method

ensure_state!

rails latest stable - Class: ActiveSupport::Notifications::Fanout::Handle
ensure_state!(expected)
private

No documentation available.

# File activesupport/lib/active_support/notifications/fanout.rb, line 267
          def ensure_state!(expected)
            if @state != expected
              raise ArgumentError, "expected state to be #{expected.inspect} but was #{@state.inspect}"
            end
          end