module Spree::AuthenticationHelpers

Public Class Methods

included(receiver) click to toggle source
# File lib/spree/authentication_helpers.rb, line 3
def self.included(receiver)
  receiver.send :helper_method, :spree_current_user
  receiver.send :helper_method, :spree_login_path
  receiver.send :helper_method, :spree_signup_path
  receiver.send :helper_method, :spree_logout_path
end

Public Instance Methods

spree_current_user() click to toggle source
# File lib/spree/authentication_helpers.rb, line 10
def spree_current_user
  current_spree_user
end
spree_login_path() click to toggle source
# File lib/spree/authentication_helpers.rb, line 14
def spree_login_path
  spree.login_path
end
spree_logout_path() click to toggle source
# File lib/spree/authentication_helpers.rb, line 22
def spree_logout_path
  spree.logout_path
end
spree_signup_path() click to toggle source
# File lib/spree/authentication_helpers.rb, line 18
def spree_signup_path
  spree.signup_path
end