diff options
author | Lourens Naude <lourens@methodmissing.com> | 2008-12-18 11:33:53 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-12-18 11:33:53 -0600 |
commit | 3ff6b00ee30d0961f57e3c4b64ec8ff0155aaf2d (patch) | |
tree | e8adf40ecf077c4216ee36bcf9cc20f5ef071952 /actionpack/lib/action_controller/session/abstract_store.rb | |
parent | 33f76bb25a973a4707437064e2f963c521413fcb (diff) | |
download | rails-3ff6b00ee30d0961f57e3c4b64ec8ff0155aaf2d.tar.gz rails-3ff6b00ee30d0961f57e3c4b64ec8ff0155aaf2d.tar.bz2 rails-3ff6b00ee30d0961f57e3c4b64ec8ff0155aaf2d.zip |
Persistent session identifier support for CookieSessionStore and API compat. with the server side stores [#1591 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'actionpack/lib/action_controller/session/abstract_store.rb')
-rw-r--r-- | actionpack/lib/action_controller/session/abstract_store.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/session/abstract_store.rb b/actionpack/lib/action_controller/session/abstract_store.rb index c6dd865fad..7874ee5a28 100644 --- a/actionpack/lib/action_controller/session/abstract_store.rb +++ b/actionpack/lib/action_controller/session/abstract_store.rb @@ -21,6 +21,13 @@ module ActionController @id end + def session_id + ActiveSupport::Deprecation.warn( + "ActionController::Session::AbstractStore::SessionHash#session_id" + + "has been deprecated.Please use #id instead.", caller) + id + end + def [](key) load! unless @loaded super @@ -37,6 +44,13 @@ module ActionController h end + def data + ActiveSupport::Deprecation.warn( + "ActionController::Session::AbstractStore::SessionHash#data" + + "has been deprecated.Please use #to_hash instead.", caller) + to_hash + end + private def load! @id, session = @by.send(:load_session, @env) |