Module: Cms::Sites::DeviseShimHelper
- Includes:
- AuthenticationHelper, DeviseHelper
- Included in:
- ForgotPasswordPortletHelper, LoginPortletHelper
- Defined in:
- app/helpers/cms/sites/devise_shim_helper.rb
Overview
A shim that can be added to Portlet helpers to provide Devise behavior.
Instance Method Summary collapse
- #devise_mapping ⇒ Object
-
#main_app ⇒ Object
Shim to ensure main_app.
- #resource ⇒ Object
- #resource_name ⇒ Object
Methods included from AuthenticationHelper
#new_password_path, #new_session_path, #password_path, #session_path
Instance Method Details
#devise_mapping ⇒ Object
26 27 28 |
# File 'app/helpers/cms/sites/devise_shim_helper.rb', line 26 def devise_mapping @devise_mapping ||= Devise.mappings[:cms_user] end |
#main_app ⇒ Object
Shim to ensure main_app. is available for this helper.
8 9 10 |
# File 'app/helpers/cms/sites/devise_shim_helper.rb', line 8 def main_app Rails.application.class.routes.url_helpers end |
#resource ⇒ Object
18 19 20 |
# File 'app/helpers/cms/sites/devise_shim_helper.rb', line 18 def resource :cms_user end |
#resource_name ⇒ Object
22 23 24 |
# File 'app/helpers/cms/sites/devise_shim_helper.rb', line 22 def resource_name :cms_user end |