diff options
| author | Guillaume | 2017-10-19 10:14:09 +0200 |
|---|---|---|
| committer | Guillaume | 2017-10-19 10:14:09 +0200 |
| commit | a72da010bc7b1d46a5a64ba715ac0926f7ba6748 (patch) | |
| tree | 30c11105c8f3ca428fdb2a8fc40506795d16013e | |
| parent | 8f16ba911810f93c5a651e6fb9c355953e41d53c (diff) | |
| download | chouette-core-a72da010bc7b1d46a5a64ba715ac0926f7ba6748.tar.bz2 | |
move begin_of_association_chain to protected method Refs #4741
| -rw-r--r-- | app/controllers/compliance_control_sets_controller.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/app/controllers/compliance_control_sets_controller.rb b/app/controllers/compliance_control_sets_controller.rb index 1f578f781..1243c742b 100644 --- a/app/controllers/compliance_control_sets_controller.rb +++ b/app/controllers/compliance_control_sets_controller.rb @@ -23,10 +23,6 @@ class ComplianceControlSetsController < BreadcrumbController end end - def begin_of_association_chain - current_organisation - end - def clone ComplianceControlSetCloner.new.copy(params[:id], current_organisation) flash[:notice] = I18n.t("compliance_control_sets.errors.operation_in_progress") @@ -35,6 +31,9 @@ class ComplianceControlSetsController < BreadcrumbController protected + def begin_of_association_chain + current_organisation + end private @@ -55,4 +54,4 @@ class ComplianceControlSetsController < BreadcrumbController def compliance_control_set_params params.require(:compliance_control_set).permit(:name, :id) end -end +end
\ No newline at end of file |
