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.0.2.pre.RC5 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.2.pre.RC4 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.2.pre.RC3 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.2.pre.RC2 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.2.pre.RC1 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.1 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.0 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.0.pre.RC13 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.0.pre.RC12 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.0.pre.RC11 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.0.pre.RC10 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.0.pre.RC9 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.0.pre.RC8 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-1.5.0 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.0.pre.RC7 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.0.pre.RC6 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.0.pre.RC5 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.0.pre.RC4 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.0.pre.RC3 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-2.0.0.pre.RC2 app/controllers/maestrano/sessions_controller.rb