Module: Spree::AuthenticationHelpers
- Defined in:
- lib/spree/authentication_helpers.rb
Class Method Summary collapse
Instance Method Summary collapse
- #spree_current_user ⇒ Object
- #spree_login_path ⇒ Object
- #spree_logout_path ⇒ Object
- #spree_signup_path ⇒ Object
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_login_path receiver.send :helper_method, :spree_signup_path receiver.send :helper_method, :spree_logout_path receiver.send :helper_method, :spree_current_user # ensure refinery_user? helper method is always available receiver.send :helper_method, :refinery_user? end |
Instance Method Details
#spree_current_user ⇒ Object
13 14 15 |
# File 'lib/spree/authentication_helpers.rb', line 13 def spree_current_user current_refinery_user end |
#spree_login_path ⇒ Object
17 18 19 |
# File 'lib/spree/authentication_helpers.rb', line 17 def spree_login_path refinery.new_refinery_user_session_path end |
#spree_logout_path ⇒ Object
25 26 27 |
# File 'lib/spree/authentication_helpers.rb', line 25 def spree_logout_path refinery.destroy_refinery_user_session_path end |
#spree_signup_path ⇒ Object
21 22 23 |
# File 'lib/spree/authentication_helpers.rb', line 21 def spree_signup_path refinery.new_refinery_user_registration_path end |