Sha256: e1bda0e36e3774f053a064052f3ed4057a2c2f22b84483c752cd73bcc58d8f0c

Contents?: true

Size: 544 Bytes

Versions: 4

Compression:

Stored size: 544 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_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

4 entries across 4 versions & 1 rubygems

Version Path
spree_auth_devise-1.3.1 lib/spree/authentication_helpers.rb
spree_auth_devise-1.2.0 lib/spree/authentication_helpers.rb
spree_auth_devise-1.0.1 lib/spree/authentication_helpers.rb
spree_auth_devise-1.0.0 lib/spree/authentication_helpers.rb