diff options
| author | Teddy Wing | 2017-09-25 15:18:15 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-09-25 15:18:15 +0200 |
| commit | 972cbb129747feb15c3c6c5ab5eabea2d7c045e1 (patch) | |
| tree | c6fbc4ec6b65803a5049fcc2f3a224efbcd790ef /app | |
| parent | fa7a8aa5bbc5eea97f89bbab662303e5b5403231 (diff) | |
| download | chouette-core-972cbb129747feb15c3c6c5ab5eabea2d7c045e1.tar.bz2 | |
Workbench: Add `output` association
The `output` attribute should be a `ReferentialSuite`.
Refs #3520
Diffstat (limited to 'app')
| -rw-r--r-- | app/models/workbench.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/workbench.rb b/app/models/workbench.rb index 30692e625..234cb043f 100644 --- a/app/models/workbench.rb +++ b/app/models/workbench.rb @@ -2,6 +2,7 @@ class Workbench < ActiveRecord::Base belongs_to :organisation belongs_to :line_referential belongs_to :stop_area_referential + belongs_to :output, class_name: 'ReferentialSuite' has_many :lines, -> (workbench) { Stif::MyWorkbenchScopes.new(workbench).line_scope(self) }, through: :line_referential has_many :networks, through: :line_referential |
