diff options
| -rw-r--r-- | app/controllers/application_controller.rb | 8 | ||||
| -rw-r--r-- | app/helpers/custom_view_helper.rb | 9 |
2 files changed, 9 insertions, 8 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 6c83547f0..6a9f6942f 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -38,13 +38,6 @@ class ApplicationController < ActionController::Base end helper_method :current_offer_workbench - def render_custom_view(view) - view_name = [view, current_organisation.custom_view].compact.join('_') - Rails.logger.info "Render custom view #{view_name}" - render partial: view_name - end - helper_method :render_custom_view - def current_functional_scope functional_scope = current_organisation.sso_attributes.try(:[], "functional_scope") if current_organisation JSON.parse(functional_scope) if functional_scope @@ -55,7 +48,6 @@ class ApplicationController < ActionController::Base current_organisation end - # Overwriting the sign_out redirect path method def after_sign_out_path_for(resource_or_scope) new_user_session_path diff --git a/app/helpers/custom_view_helper.rb b/app/helpers/custom_view_helper.rb new file mode 100644 index 000000000..5f1c3b3ff --- /dev/null +++ b/app/helpers/custom_view_helper.rb @@ -0,0 +1,9 @@ +module CustomViewHelper + + def render_custom_view(view) + view_name = [view, current_organisation.custom_view].compact.join('_') + Rails.logger.info "Render custom view #{view_name}" + render partial: view_name + end + +end |
