Sha256: f915e7421651c2d19ef75097201e926eb07063c14340bfac2710b85e669a90c0

Contents?: true

Size: 550 Bytes

Versions: 40

Compression:

Stored size: 550 Bytes

Contents

module Spree
  module AuthenticationHelpers
    def self.included(receiver)
      receiver.send :helper_method, :spree_current_user
      receiver.send :helper_method, :spree_login_path
      receiver.send :helper_method, :spree_signup_path
      receiver.send :helper_method, :spree_logout_path
    end

    def spree_current_user
      current_spree_user
    end

    def spree_login_path
      spree.login_path
    end

    def spree_signup_path
      spree.signup_path
    end

    def spree_logout_path
      spree.logout_path
    end
  end
end

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
spree_auth_devise-4.4.2 lib/spree/authentication_helpers.rb
spree_auth_devise-4.0.1 lib/spree/authentication_helpers.rb
spree_auth_devise-4.1.1 lib/spree/authentication_helpers.rb
spree_auth_devise-4.2.1 lib/spree/authentication_helpers.rb
spree_auth_devise-4.4.1 lib/spree/authentication_helpers.rb
spree_auth_devise-4.4.0 lib/spree/authentication_helpers.rb
spree_auth_devise-4.3.4 lib/spree/authentication_helpers.rb
spree_auth_devise-4.3.3 lib/spree/authentication_helpers.rb
spree_auth_devise-4.3.2 lib/spree/authentication_helpers.rb
spree_auth_devise-4.3.1 lib/spree/authentication_helpers.rb
spree_auth_devise-4.3.0 lib/spree/authentication_helpers.rb
spree_auth_devise-4.2.0 lib/spree/authentication_helpers.rb
spree_auth_devise-4.1.0 lib/spree/authentication_helpers.rb
spree_auth_devise-4.1.0.rc1 lib/spree/authentication_helpers.rb
spree_auth_devise-4.0.0 lib/spree/authentication_helpers.rb
spree_auth_devise-4.0.0.rc2 lib/spree/authentication_helpers.rb
spree_auth_devise-4.0.0.rc1 lib/spree/authentication_helpers.rb
spree_auth_devise-3.5.2 lib/spree/authentication_helpers.rb
spree_auth_devise-3.5.1 lib/spree/authentication_helpers.rb
spree_auth_devise-3.5.0 lib/spree/authentication_helpers.rb