module Spree::AuthenticationHelpers
Public Class Methods
included(receiver)
click to toggle source
# File lib/spree/authentication_helpers.rb, line 5 def self.included(receiver) if receiver.send(:respond_to?, :helper_method) receiver.send(:helper_method, :spree_current_user) if SolidusSupport.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 end
Public Instance Methods
spree_current_user()
click to toggle source
# File lib/spree/authentication_helpers.rb, line 17 def spree_current_user current_spree_user end