diff options
| author | Zog | 2018-01-11 15:42:37 +0100 | 
|---|---|---|
| committer | Zog | 2018-01-11 15:42:37 +0100 | 
| commit | ed0faeaaa7bddc135c7b55f6d12fd09a739afacc (patch) | |
| tree | 488e5536757df1d7ac4bcf14436290c0c1d22244 /app/controllers/application_controller.rb | |
| parent | cb0564d4d7d35c8a43e166b68d8c7dc94341fc9d (diff) | |
| download | chouette-core-ed0faeaaa7bddc135c7b55f6d12fd09a739afacc.tar.bz2 | |
Refs #5551 @0.5h; Implement the custom fields in the creation modal
And Refactor the component in the process
Diffstat (limited to 'app/controllers/application_controller.rb')
| -rw-r--r-- | app/controllers/application_controller.rb | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 474277da1..80d194096 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -41,6 +41,11 @@ class ApplicationController < ActionController::Base    end    helper_method :current_offer_workbench +  def current_workgroup +    current_offer_workbench.workgroup +  end +  helper_method :current_workgroup +    def current_functional_scope      functional_scope = current_organisation.sso_attributes.try(:[], "functional_scope") if current_organisation      JSON.parse(functional_scope) if functional_scope | 
