Sha256: 87378e08c639370b0d32d54f51e3788b878bfc1c80cf7295d13858b02ec2463e

Contents?: true

Size: 335 Bytes

Versions: 93

Compression:

Stored size: 335 Bytes

Contents

module Caboose
  class LogoutController < ApplicationController
    # GET /logout
    def index
      Caboose.plugin_hook('before_logout')
      
      logout_user
      elo = User.find(User::LOGGED_OUT_USER_ID)        
      login_user(elo)      
      redirect_to params[:return_url] ? params[:return_url] : "/"    
    end
  end
end

Version data entries

93 entries across 93 versions & 1 rubygems

Version Path
caboose-cms-0.7.18 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.17 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.16 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.15 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.14 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.13 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.12 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.11 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.10 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.9 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.8 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.7 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.6 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.5 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.4 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.3 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.2 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.1 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.36 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.35 app/controllers/caboose/logout_controller.rb