Module: Spree::AuthenticationHelpers

Defined in:
lib/spree/authentication_helpers.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/spree/authentication_helpers.rb', line 3

def self.included(receiver)
  receiver.send :helper_method, :spree_current_user

  if Spree::Auth::Engine.frontend_available?
    receiver.send :helper_method, :spree_login_path
    receiver.send :helper_method, :spree_signup_path
    receiver.send :helper_method, :spree_logout_path
  end
end

Instance Method Details

#spree_current_userObject



13
14
15
# File 'lib/spree/authentication_helpers.rb', line 13

def spree_current_user
  current_spree_user
end

#spree_login_pathObject



18
19
20
# File 'lib/spree/authentication_helpers.rb', line 18

def 
  spree.
end

#spree_logout_pathObject



26
27
28
# File 'lib/spree/authentication_helpers.rb', line 26

def spree_logout_path
  spree.logout_path
end

#spree_signup_pathObject



22
23
24
# File 'lib/spree/authentication_helpers.rb', line 22

def 
  spree.
end