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.0.pre.RC1 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-1.4.0 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-1.3.5 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-1.3.4 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-1.3.3 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-1.3.2 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-1.3.1 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-1.3.0 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-1.2.3 app/controllers/maestrano/sessions_controller.rb
maestrano-connector-rails-1.2.2 app/controllers/maestrano/sessions_controller.rb