Sha256: d4be63ffeaed3e46ce223544fd7492ab69ff47acf6d5c6fd3a148f8a8a7d6731

Contents?: true

Size: 620 Bytes

Versions: 61

Compression:

Stored size: 620 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
      receiver.send :helper_method, :spree_current_user
    end

    def spree_current_user
      current_user
    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.send :include, Spree::AuthenticationHelpers

Version data entries

61 entries across 61 versions & 2 rubygems

Version Path
spree_core-2.3.0 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.2.2 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.1.7 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.0.11 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.0.10 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.1.6 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.2.1 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.2.0 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.1.5 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.0.9 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-1.3.5 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.1.4 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.0.8 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.1.3 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.0.7 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.1.2 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.0.6 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-1.3.4 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.1.1 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.0.5 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt