Sha256: ed04b2686fc688bf4ca7dc61e1aa73170af9b9635587d94228f53e3148e20719

Contents?: true

Size: 537 Bytes

Versions: 5

Compression:

Stored size: 537 Bytes

Contents

module Spree
  module AuthenticationHelpers
    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
    end

    def spree_login_path
      main_app.login_path
    end

    def spree_signup_path
      main_app.signup_path
    end

    def spree_logout_path
      main_app.logout_path
    end
  end
end

ApplicationController.include Spree::AuthenticationHelpers if defined?(ApplicationController)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_core-4.10.1 lib/generators/spree/custom_authentication/templates/authentication_helpers.rb.tt
spree_core-4.10.0 lib/generators/spree/custom_authentication/templates/authentication_helpers.rb.tt
spree_core-4.9.0 lib/generators/spree/custom_authentication/templates/authentication_helpers.rb.tt
spree_core-4.8.3 lib/generators/spree/custom_authentication/templates/authentication_helpers.rb.tt
spree_core-4.8.2 lib/generators/spree/custom_authentication/templates/authentication_helpers.rb.tt