instance method ensure_state!

Ruby on Rails 8.0.4

Since v7.1.6 Private

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

ensure_state!(expected)

No documentation comment.

Parameters

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

Defined in activesupport/lib/active_support/notifications/fanout.rb line 263 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::Notifications::Fanout::Handle

Type at least 2 characters to search.

↑↓ navigate · open · esc close