instance method has_flash_object?

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.0.20

Signature

has_flash_object?(name=nil)

Does the specified flash object exist?

Parameters

name opt = nil
Source
# File actionpack/lib/action_dispatch/testing/test_response.rb, line 79
      def has_flash_object?(name=nil)
        ActiveSupport::Deprecation.warn("response.has_flash_object? has been deprecated. Use flash[name] instead", caller)
        !flash[name].nil?
      end

Defined in actionpack/lib/action_dispatch/testing/test_response.rb line 79 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::TestResponse::DeprecatedHelpers

Type at least 2 characters to search.

↑↓ navigate · open · esc close