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.60 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.59 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.58 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.57 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.55 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.54 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.53 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.52 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.51 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.50 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.49 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.48 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.47 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.46 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.45 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.44 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.43 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.42 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.41 app/controllers/caboose/logout_controller.rb
caboose-cms-0.7.40 app/controllers/caboose/logout_controller.rb