diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/application_controller.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 853c2f715..6c83547f0 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -38,6 +38,13 @@ 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 |
