1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00
heartcombo--devise/test/rails_app/app/controllers/users_controller.rb
2009-11-24 11:52:13 -02:00

12 lines
274 B
Ruby

class UsersController < ApplicationController
before_filter :authenticate_user!
def index
user_session[:cart] = "Cart"
end
def expire
user_session['last_request_at'] = 31.minutes.ago.utc
render :text => 'User will be expired on next request'
end
end