lib/limited_sessions/expiry.rb in limited_sessions-4.2.0 vs lib/limited_sessions/expiry.rb in limited_sessions-5.0.0
- old
+ new
@@ -1,17 +1,10 @@
-# LimitedSessions
-# (c) 2007-2017 t.e.morgan
-# Made available under the MIT license
-
-# This version is compatible with Rack 1.4-2.0 (possibly earlier; untested).
-# Correspondingly, it is compatible with Rails 3.x-5.x.
-
module LimitedSessions
# Rack middleware that should be installed *after* the session handling middleware
class Expiry
DEFAULT_OPTIONS = {
- :recent_activity => nil, # eg: 2.hours
- :max_session => nil # eg: 24.hours
+ recent_activity: nil, # eg: 2.hours
+ max_session: nil # eg: 24.hours
}
def initialize(app, options={})
@app = app
@options = DEFAULT_OPTIONS.merge(options)