instance method
ensure_session_key!
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.0.20 PrivateSignature
ensure_session_key!()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/middleware/session/abstract_store.rb, line 213
def ensure_session_key!
if @key.blank?
raise ArgumentError, 'A key is required to write a ' +
'cookie containing the session data. Use ' +
'config.session_store SESSION_STORE, { :key => ' +
'"_myapp_session" } in config/application.rb'
end
end
Defined in actionpack/lib/action_dispatch/middleware/session/abstract_store.rb line 213
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Session::AbstractStore