Module: Ixtlan::Controllers::AuthenticationsController

Defined in:
lib/ixtlan/controllers/authentications_controller.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/ixtlan/controllers/authentications_controller.rb', line 5

def self.included(base)
  base.skip_before_filter :guard
  base.skip_before_filter :authenticate, :only => :destroy

  # do not want to expose permissions settings on filesystem cache
  base.cache_headers :private
end

Instance Method Details

#createObject



28
29
30
# File 'lib/ixtlan/controllers/authentications_controller.rb', line 28

def create
  
end

#destroyObject



32
33
34
35
36
# File 'lib/ixtlan/controllers/authentications_controller.rb', line 32

def destroy
  authentication_logger.log_user(current_user.nil? ? nil : current_user., "logged out")
  session.clear
  head :ok
end

#showObject



24
25
26
# File 'lib/ixtlan/controllers/authentications_controller.rb', line 24

def show
  
end