aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlban Peignier2017-10-01 12:01:37 +0200
committerAlban Peignier2017-10-01 12:01:37 +0200
commitb609e906184c683e54395fca732365c8d9539fbd (patch)
tree338c8af6130b02dc5bccc97eacd7ee16642cab30
parentbc97ad9983a2429e98a950374a0e797acf708f7a (diff)
downloadchouette-core-4658-remove-current-functional-scope.tar.bz2
Remove ApplicationController#current_functional_scope. Refs #46584658-remove-current-functional-scope
-rw-r--r--app/controllers/application_controller.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 853c2f715..552a081b1 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -38,17 +38,10 @@ class ApplicationController < ActionController::Base
end
helper_method :current_offer_workbench
- def current_functional_scope
- functional_scope = current_organisation.sso_attributes.try(:[], "functional_scope") if current_organisation
- JSON.parse(functional_scope) if functional_scope
- end
- helper_method :current_functional_scope
-
def begin_of_association_chain
current_organisation
end
-
# Overwriting the sign_out redirect path method
def after_sign_out_path_for(resource_or_scope)
new_user_session_path