Sha256: ee5455f50aa00e5c6102e0544534305a7a80670a5cd0a13730cada0d6f17a102

Contents?: true

Size: 716 Bytes

Versions: 20

Compression:

Stored size: 716 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 edit_form
    user_session['last_request_at'] = 31.minutes.ago.utc
  end

  def update_form
    render :text => 'Update'
  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

20 entries across 20 versions & 3 rubygems

Version Path
devise-3.2.3 test/rails_app/app/controllers/users_controller.rb
devise-token_authenticatable-0.1.0 spec/support/rails_app/app/controllers/users_controller.rb
devise-token_authenticatable-0.1.0.beta1 spec/support/rails_app/app/controllers/users_controller.rb
devise-3.2.2 test/rails_app/app/controllers/users_controller.rb
devise-3.2.1 test/rails_app/app/controllers/users_controller.rb
devise-3.1.2 test/rails_app/app/controllers/users_controller.rb
devise-3.0.4 test/rails_app/app/controllers/users_controller.rb
devise-3.2.0 test/rails_app/app/controllers/users_controller.rb
devise-3.1.1 test/rails_app/app/controllers/users_controller.rb
devise-3.1.0 test/rails_app/app/controllers/users_controller.rb
devise-3.0.3 test/rails_app/app/controllers/users_controller.rb
devise-3.1.0.rc2 test/rails_app/app/controllers/users_controller.rb
devise-3.0.2 test/rails_app/app/controllers/users_controller.rb
devise-3.0.1 test/rails_app/app/controllers/users_controller.rb
loyal_devise-2.1.7 test/rails_app/app/controllers/users_controller.rb
loyal_devise-2.1.6 test/rails_app/app/controllers/users_controller.rb
devise-3.0.0 test/rails_app/app/controllers/users_controller.rb
loyal_devise-2.1.5 test/rails_app/app/controllers/users_controller.rb
loyal_devise-2.1.4 test/rails_app/app/controllers/users_controller.rb
loyal_devise-2.1.3 test/rails_app/app/controllers/users_controller.rb