Skip to content

Instantly share code, notes, and snippets.

@stouset
Created January 7, 2010 23:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save stouset/271724 to your computer and use it in GitHub Desktop.
Save stouset/271724 to your computer and use it in GitHub Desktop.
module Authlogic::Session::Timeout::DontLockoutApiKey
def self.included(klass)
klass.class_eval do
before_persisting_callback_chain.detect {|c| c.method == :reset_stale_state }.options.update(:unless => :single_access?)
after_persisting_callback_chain.detect {|c| c.method == :enforce_timeout }.options.update(:unless => :single_access?)
end
end
end
class Authlogic::Session::Base
include Authlogic::Session::Timeout::DontLockoutApiKey
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment