instance method
ensure_state!
Ruby on Rails 8.1.2
Since v7.1.6 PrivateSignature
ensure_state!(expected)
No documentation comment.
Parameters
-
expectedreq
Source
# File activesupport/lib/active_support/notifications/fanout.rb, line 264
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 264
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Notifications::Fanout::Handle