mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04:00
12 lines
245 B
Ruby
12 lines
245 B
Ruby
class AdminsController < ApplicationController
|
|
before_filter :authenticate_admin!
|
|
|
|
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
|