Permalink
Browse files

no need to check for nil?

  • Loading branch information...
1 parent 8efdffe commit 692f5184c405b3b0f9b6ac02c37aaefb7d2ffb62 Neeraj Singh committed with tenderlove Sep 29, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/middleware/session/abstract_store.rb
@@ -165,7 +165,7 @@ def call(env)
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

0 comments on commit 692f518

Please sign in to comment.