instance method has_session_object?

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.0.20

Signature

has_session_object?(name=nil)

Does the specified object exist in the session?

Parameters

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

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