diff options
| author | Alban Peignier | 2017-12-28 08:50:56 +0100 | 
|---|---|---|
| committer | Alban Peignier | 2017-12-28 08:56:05 +0100 | 
| commit | da60766c207ac372e2ebd1d42be7c7b9c3ee4957 (patch) | |
| tree | deb871c934726bc2f2f8e039d6b229b960a49a9a /app/controllers/lines_controller.rb | |
| parent | df389a13dc90d6765123b58de0e5dcbc55704cc3 (diff) | |
| download | chouette-core-da60766c207ac372e2ebd1d42be7c7b9c3ee4957.tar.bz2 | |
Use current_organisation as begin_of_association_chain in Lines/Companies/Networks/GroupOfLinesController. Refs #5102
Diffstat (limited to 'app/controllers/lines_controller.rb')
| -rw-r--r-- | app/controllers/lines_controller.rb | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/app/controllers/lines_controller.rb b/app/controllers/lines_controller.rb index f446e1d37..7041a3a26 100644 --- a/app/controllers/lines_controller.rb +++ b/app/controllers/lines_controller.rb @@ -114,6 +114,10 @@ class LinesController < ChouetteController    alias_method :current_referential, :line_referential    helper_method :current_referential +  def begin_of_association_chain +    current_organisation +  end +    def line_params      params.require(:line).permit(        :transport_mode, | 
