Module: AuthAssistant::ViewHelpers::SessionLink

Included in:
AuthAssistant::ViewHelpers
Defined in:
lib/auth_assistant/view/session_link.rb

Instance Method Summary collapse

Instance Method Details



10
11
12
13
14
# File 'lib/auth_assistant/view/session_link.rb', line 10

def (label, options = {})  
  label = options[:label] || auth_labels[:sign_in]
  path = create_session_path options[:role]
  link_to(label, path)
end


4
5
6
7
8
# File 'lib/auth_assistant/view/session_link.rb', line 4

def sign_out_link(options = {})
  label = options[:label] || auth_labels[:sign_out]
  path = destroy_session_path options[:role]
  link_to(label, path)
end