diff options
| author | Edouard Maffert | 2016-09-05 12:43:04 +0200 |
|---|---|---|
| committer | Edouard Maffert | 2016-09-05 12:43:04 +0200 |
| commit | 6a64a5e77e0fc7478c961175622fe8c940e91042 (patch) | |
| tree | 31c56f50f5d5ec7a9dbfe59c01f91c333c0cc8f2 /app/models/line_referential.rb | |
| parent | fe540808f7a52f997ebc25441a5626a3903a777c (diff) | |
| download | chouette-core-6a64a5e77e0fc7478c961175622fe8c940e91042.tar.bz2 | |
fix lines count display on line referential show
Diffstat (limited to 'app/models/line_referential.rb')
| -rw-r--r-- | app/models/line_referential.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/line_referential.rb b/app/models/line_referential.rb index 9c5d29b13..85464f5af 100644 --- a/app/models/line_referential.rb +++ b/app/models/line_referential.rb @@ -16,4 +16,8 @@ class LineReferential < ActiveRecord::Base validates :sync_interval, presence: true # need to define precise validation rules validates_inclusion_of :sync_interval, :in => 1..30 + + def operating_lines + lines.where(deactivated: false) + end end |
