Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove unnecessary ActiveSupport dependency

  • Loading branch information...
commit 84fe2768d62349bb665565a5c2102e19c5fa2df7 1 parent a5ad31c
Alexander Shapiotko thousandsofthem authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/action_dispatch/session/iron_cache.rb
5 lib/action_dispatch/session/iron_cache.rb
View
@@ -26,7 +26,7 @@ def get_session(env, session_id)
item = item.value unless item.nil?
end
- session_data = deserialize_entry(item).value rescue {}
+ session_data = deserialize_entry(item) rescue {}
[session_id, session_data]
end
@@ -70,8 +70,7 @@ def escape_key(key)
def deserialize_entry(raw_value)
if raw_value
raw_value = ::Base64.decode64(raw_value) rescue raw_value
- entry = Marshal.load(raw_value) rescue raw_value
- entry.is_a?(ActiveSupport::Cache::Entry) ? entry : ActiveSupport::Cache::Entry.new(entry)
+ Marshal.load(raw_value) rescue raw_value
else
nil
end
Please sign in to comment.
Something went wrong with that request. Please try again.