diff options
| author | Luc Donnet | 2016-11-19 18:05:29 +0100 | 
|---|---|---|
| committer | Luc Donnet | 2016-11-19 18:05:29 +0100 | 
| commit | bec1e722f1f4dadc34db6984ccfe7155d6c95ed5 (patch) | |
| tree | 057f6f6cf3413306b582864994a8f945f7fc93b2 /app/models/chouette/line.rb | |
| parent | 85ff71154242d889799bd7d2e2a5d7ba99340c2b (diff) | |
| download | chouette-core-bec1e722f1f4dadc34db6984ccfe7155d6c95ed5.tar.bz2 | |
Fix transport mode display in both views referential_lines and lines Refs #1974
Diffstat (limited to 'app/models/chouette/line.rb')
| -rw-r--r-- | app/models/chouette/line.rb | 2 | 
1 files changed, 0 insertions, 2 deletions
| diff --git a/app/models/chouette/line.rb b/app/models/chouette/line.rb index 9b18f0ffb..80b901bd4 100644 --- a/app/models/chouette/line.rb +++ b/app/models/chouette/line.rb @@ -24,7 +24,6 @@ class Chouette::Line < Chouette::ActiveRecord    accepts_nested_attributes_for :footnotes, :reject_if => :all_blank, :allow_destroy => true    attr_reader :group_of_line_tokens -  attr_accessor :transport_mode    # validates_presence_of :network    # validates_presence_of :company @@ -36,7 +35,6 @@ class Chouette::Line < Chouette::ActiveRecord    validates_format_of :text_color, :with => %r{\A[0-9a-fA-F]{6}\Z}, :allow_nil => true, :allow_blank => true    validates_presence_of :name -  validates :transport_mode, inclusion: { in: self.transport_mode.values }    scope :by_text, ->(text) { where('lower(name) LIKE :t or lower(published_name) LIKE :t or lower(objectid) LIKE :t or lower(comment) LIKE :t or lower(number) LIKE :t',      t: "%#{text.downcase}%") } | 
