X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/873ac155cabfb1aab8d887d07bc8389617d3f843..24b4538f8fef9f97098a1dfd82ff56bd61103c96:/app/models/trace.rb?ds=inline diff --git a/app/models/trace.rb b/app/models/trace.rb index 942d160f5..1d0b11d43 100644 --- a/app/models/trace.rb +++ b/app/models/trace.rb @@ -38,8 +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, :invalid_chars => true - validates :description, :presence => { :on => :create }, :length => 1..255, :invalid_chars => true + validates :name, :presence => true, :length => 1..255, :characters => true + validates :description, :presence => { :on => :create }, :length => 1..255, :characters => true validates :timestamp, :presence => true validates :visibility, :inclusion => %w[private public trackable identifiable]