Skip to content

Commit

Permalink
options are given to set_session in fourth parameter in Rails 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Minarik committed Jun 20, 2011
1 parent 382cf2b commit 79c7b64
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/redis-session-store.rb
Expand Up @@ -53,8 +53,7 @@ def get_session(env, sid)
[sid, session]
end

def set_session(env, sid, session_data)
options = env['rack.session.options']
def set_session(env, sid, session_data, options)
expiry = options[:expire_after] || nil

@redis.pipelined do
Expand Down

0 comments on commit 79c7b64

Please sign in to comment.