Module: Spree::AuthenticationHelpers
- Defined in:
- lib/spree/authentication_helpers.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(receiver) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# 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 |
Instance Method Details
#spree_current_user ⇒ Object
17 18 19 |
# File 'lib/spree/authentication_helpers.rb', line 17 def spree_current_user current_spree_user end |