Timeout does not explode when reset_authentication_token! is accidentally defined by Active Model

This commit is contained in:
José Valim
2012-06-16 14:04:29 +02:00
parent b1633f2454
commit 4bc2ff997a
5 changed files with 29 additions and 2 deletions

View File

@@ -3,4 +3,9 @@ class AdminsController < ApplicationController
def index
end
def expire
admin_session['last_request_at'] = 31.minutes.ago.utc
render :text => 'Admin will be expired on next request'
end
end