diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-09-30 02:24:47 +0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-30 08:11:34 +0800 |
commit | 692f5184c405b3b0f9b6ac02c37aaefb7d2ffb62 (patch) | |
tree | b3ac89f1775aac5c5e6252ef1710b09d61d419ca /actionpack/lib/action_dispatch/middleware/session | |
parent | 8efdffeda31b520b9b534dc614c6039404288c26 (diff) | |
download | rails-692f5184c405b3b0f9b6ac02c37aaefb7d2ffb62.tar.gz rails-692f5184c405b3b0f9b6ac02c37aaefb7d2ffb62.tar.bz2 rails-692f5184c405b3b0f9b6ac02c37aaefb7d2ffb62.zip |
no need to check for nil?
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/session')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/session/abstract_store.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb b/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb index ea49b30630..db0187c015 100644 --- a/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb +++ b/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb @@ -165,7 +165,7 @@ module ActionDispatch return response unless value cookie = { :value => value } - unless options[:expire_after].nil? + if options[:expire_after] cookie[:expires] = Time.now + options.delete(:expire_after) end |