instance method has_flash_with_contents?

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.0.20

Signature

has_flash_with_contents?()

Do we have a flash that has contents?

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

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