Module: SolidusAuthDevise::ApplicationControllerPatch

Defined in:
app/patches/controllers/solidus_auth_devise/application_controller_patch.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.prepended(base) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'app/patches/controllers/solidus_auth_devise/application_controller_patch.rb', line 5

def self.prepended(base)
  return unless base.respond_to?(:helper_method)

  base.send(:helper_method, :spree_current_user)

  return unless SolidusSupport.frontend_available?

  base.send(:helper_method, :spree_login_path)
  base.send(:helper_method, :spree_signup_path)
  base.send(:helper_method, :spree_logout_path)
end

Instance Method Details

#spree_current_userObject



17
18
19
# File 'app/patches/controllers/solidus_auth_devise/application_controller_patch.rb', line 17

def spree_current_user
  current_spree_user
end