diff options
| author | Luc Donnet | 2018-01-02 11:55:02 +0100 |
|---|---|---|
| committer | GitHub | 2018-01-02 11:55:02 +0100 |
| commit | ab48fee5d8540e839a29abb9c196303ff7a2e9af (patch) | |
| tree | cd024143cce12aa6b3e50eebdf00b2cb48407924 /app/controllers/networks_controller.rb | |
| parent | 7c6522fe4d0d4522a3d192fb0a0439eb92668b52 (diff) | |
| parent | 25e039b3de2b45526b233c3ef4d95bb4c9f40a18 (diff) | |
| download | chouette-core-ab48fee5d8540e839a29abb9c196303ff7a2e9af.tar.bz2 | |
Merge pull request #186 from af83/5102-begin_of_association_chain
5102 Use current_organisation as begin_of_association_chain
Diffstat (limited to 'app/controllers/networks_controller.rb')
| -rw-r--r-- | app/controllers/networks_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/networks_controller.rb b/app/controllers/networks_controller.rb index 494d1e69f..79a5eb97b 100644 --- a/app/controllers/networks_controller.rb +++ b/app/controllers/networks_controller.rb @@ -71,6 +71,10 @@ class NetworksController < ChouetteController alias_method :current_referential, :line_referential helper_method :current_referential + def begin_of_association_chain + current_organisation + end + def network_params params.require(:network).permit(:objectid, :object_version, :version_date, :description, :name, :registration_number, :source_name, :source_type_name, :source_identifier, :comment ) end |
