Module: Cms::Sites::AuthenticationHelper

Included in:
DeviseShimHelper
Defined in:
app/helpers/cms/sites/authentication_helper.rb

Overview

Override Devise Helpers to point to main_app rather than engine. Used for public site authentication.

Instance Method Summary collapse

Instance Method Details

#new_password_path(resource_name) ⇒ Object



21
22
23
# File 'app/helpers/cms/sites/authentication_helper.rb', line 21

def new_password_path(resource_name)
  main_app.forgot_password_path
end

#new_session_path(resource_name) ⇒ Object



8
9
10
11
# File 'app/helpers/cms/sites/authentication_helper.rb', line 8

def new_session_path(resource_name)
  # login_path
  main_app.new_cms_user_session_path
end

#password_path(resource_name) ⇒ Object



17
18
19
# File 'app/helpers/cms/sites/authentication_helper.rb', line 17

def password_path(resource_name)
  main_app.cms_user_password_path
end

#session_path(resource_name) ⇒ Object



13
14
15
# File 'app/helpers/cms/sites/authentication_helper.rb', line 13

def session_path(resource_name)
  main_app.cms_user_session_path
end