diff options
| author | Xinhui | 2017-02-03 10:54:32 +0100 | 
|---|---|---|
| committer | Xinhui | 2017-02-03 10:54:44 +0100 | 
| commit | a8a096c2f0731d3a7ed5a25516e012d988fc078d (patch) | |
| tree | 29fa0cb549bd20a78d3a1f1bfa1c3964e464031f /app/models/chouette/line.rb | |
| parent | ca780b861fe316c07eb21c0cce5638d1beafdaa8 (diff) | |
| download | chouette-core-a8a096c2f0731d3a7ed5a25516e012d988fc078d.tar.bz2 | |
Lines has_array_of secondary_companies
Refs #2490
Diffstat (limited to 'app/models/chouette/line.rb')
| -rw-r--r-- | app/models/chouette/line.rb | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/app/models/chouette/line.rb b/app/models/chouette/line.rb index 6c5d8501f..27a37a7f4 100644 --- a/app/models/chouette/line.rb +++ b/app/models/chouette/line.rb @@ -14,6 +14,9 @@ class Chouette::Line < Chouette::ActiveRecord    belongs_to :company    belongs_to :network + +  has_array_of :secondary_companies, class_name: 'Chouette::Company' +    has_many :routes, :dependent => :destroy    has_many :journey_patterns, :through => :routes    has_many :vehicle_journeys, :through => :journey_patterns | 
