diff options
| author | cedricnjanga | 2018-04-10 09:40:58 -0700 | 
|---|---|---|
| committer | cedricnjanga | 2018-04-24 12:08:37 -0700 | 
| commit | 1f8d2759c545e60ab2989fc6331e55e95a3b0e67 (patch) | |
| tree | 973df3c31ffb6e498b5110dd4e859616d3bd4851 /app/models/chouette | |
| parent | ca8c0a0c829c9a55c531ed7c8422239473e09cff (diff) | |
| download | chouette-core-1f8d2759c545e60ab2989fc6331e55e95a3b0e67.tar.bz2 | |
Refs #6431 small changes on line & stop area status
Diffstat (limited to 'app/models/chouette')
| -rw-r--r-- | app/models/chouette/line.rb | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/app/models/chouette/line.rb b/app/models/chouette/line.rb index 4b5d1a68d..3ef2d8e1d 100644 --- a/app/models/chouette/line.rb +++ b/app/models/chouette/line.rb @@ -114,5 +114,9 @@ module Chouette      def activated?        !deactivated      end + +    def status +      activated? ? :activated : :deactivated +    end    end  end | 
