instance method has_flash?

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.0.20

Signature

has_flash?()

Do we have a flash?

Source
# File actionpack/lib/action_dispatch/testing/test_response.rb, line 67
      def has_flash?
        ActiveSupport::Deprecation.warn("response.has_flash? has been deprecated. Use flash.any? instead", caller)
        !flash.empty?
      end

Defined in actionpack/lib/action_dispatch/testing/test_response.rb line 67 · 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