Sha256: 0e401453d0499cb5265bda3d53d4faffe54f5bc5e4dddafeb51320d861f85a91

Contents?: true

Size: 347 Bytes

Versions: 50

Compression:

Stored size: 347 Bytes

Contents

module Maestrano
  class SessionsController < ApplicationController
    # Logout
    def destroy
      session.delete(:uid)
      session.delete(:"role_#{session[:org_uid]}")
      session.delete(:org_uid)
      session.delete(:tenant)
      session.delete(:current_user_id)
      @current_user = nil

      redirect_to root_url
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
maestrano-connector-rails-2.3.6 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.3.5 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.3.4 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.3.3 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.3.2 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.3.1 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.3.0 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.2.1 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.2.0 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.1.3 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.1.2 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.1.1 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.1.0 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.2.pre.RC12 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.2.pre.RC11 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.2.pre.RC10 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.2.pre.RC8 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.2.pre.RC9 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.2.pre.RC7 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.2.pre.RC6 app/controllers/maestrano/sessions_controller.rb