X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1e57189366c0e4a49cb29658e9bf5985996709a2..873ac155cabfb1aab8d887d07bc8389617d3f843:/app/models/trace.rb?ds=sidebyside diff --git a/app/models/trace.rb b/app/models/trace.rb index 70b2aebbe..942d160f5 100644 --- a/app/models/trace.rb +++ b/app/models/trace.rb @@ -38,9 +38,8 @@ class Trace < ActiveRecord::Base scope :tagged, ->(t) { joins(:tags).where(:gpx_file_tags => { :tag => t }) } validates :user, :presence => true, :associated => true - validates :name, :presence => true, :length => 1..255 - validates :name, :description, :invalid_chars => true - validates :description, :presence => { :on => :create }, :length => 1..255 + validates :name, :presence => true, :length => 1..255, :invalid_chars => true + validates :description, :presence => { :on => :create }, :length => 1..255, :invalid_chars => true validates :timestamp, :presence => true validates :visibility, :inclusion => %w[private public trackable identifiable]