Sha256: d58c9cafb9d0682800195cd2c0707cf5f32bbe07537d7b2f64194603a0081491

Contents?: true

Size: 582 Bytes

Versions: 55

Compression:

Stored size: 582 Bytes

Contents

class UsersController < ApplicationController
  prepend_before_filter :current_user, :only => :exhibit
  before_filter :authenticate_user!, :except => [:accept, :exhibit]
  respond_to :html, :xml

  def index
    user_session[:cart] = "Cart"
    respond_with(current_user)
  end

  def accept
    @current_user = current_user
  end

  def exhibit
    render :text => current_user ? "User is authenticated" : "User is not authenticated"
  end

  def expire
    user_session['last_request_at'] = 31.minutes.ago.utc
    render :text => 'User will be expired on next request'
  end
end

Version data entries

55 entries across 50 versions & 8 rubygems

Version Path
devise-2.2.8 test/rails_app/app/controllers/users_controller.rb
devise-2.0.6 test/rails_app/app/controllers/users_controller.rb
devise-2.1.4 test/rails_app/app/controllers/users_controller.rb
devise-2.2.7 test/rails_app/app/controllers/users_controller.rb
devise-2.2.6 test/rails_app/app/controllers/users_controller.rb
devise-2.2.5 test/rails_app/app/controllers/users_controller.rb
devise-3.0.0.rc test/rails_app/app/controllers/users_controller.rb
devise-2.2.4 test/rails_app/app/controllers/users_controller.rb
devise-warbler-2.2.3 test/rails_app/app/controllers/users_controller.rb
devise_sociable-0.1.0 vendor/bundle/gems/devise-1.5.4/test/rails_app/app/controllers/users_controller.rb
devise-2.2.3 test/rails_app/app/controllers/users_controller.rb
devise-2.1.3 test/rails_app/app/controllers/users_controller.rb
devise-2.0.5 test/rails_app/app/controllers/users_controller.rb
devise-1.5.4 test/rails_app/app/controllers/users_controller.rb
devise-2.2.2 test/rails_app/app/controllers/users_controller.rb
devise-2.2.1 test/rails_app/app/controllers/users_controller.rb
devise-2.2.0 test/rails_app/app/controllers/users_controller.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/devise-2.2.0.rc/test/rails_app/app/controllers/users_controller.rb
devise-2.2.0.rc test/rails_app/app/controllers/users_controller.rb
af-devise-2.1.2 test/rails_app/app/controllers/users_controller.rb