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.2.14 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.2.13 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.2.12 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.2.11 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.2.10 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.2.9 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.1.12 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.2.8 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.1.11 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.2.7 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.1.10 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.0.13 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.1.9 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.2.6 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.2.5 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.1.8 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.0.12 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.3.1 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.2.4 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt
spree_core-2.2.3 lib/generators/spree/custom_user/templates/authentication_helpers.rb.tt