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.6.34 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.33 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.32 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.31 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.30 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.29 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.28 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.27 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.26 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.25 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.24 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.23 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.22 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.21 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.20 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.19 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.18 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.17 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.16 app/controllers/caboose/logout_controller.rb
caboose-cms-0.6.15 app/controllers/caboose/logout_controller.rb