X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/6ba4e831a78ac9d753a775f437f8fa0b1f03951f..44051f30d8a65a49a8db020bedefa632a446c666:/app/models/trace.rb diff --git a/app/models/trace.rb b/app/models/trace.rb index 155e495a3..3eefc185d 100644 --- a/app/models/trace.rb +++ b/app/models/trace.rb @@ -3,6 +3,7 @@ class Trace < ActiveRecord::Base validates_presence_of :user_id, :name, :timestamp validates_presence_of :description, :on => :create + validates_format_of :tagstring, :with => /^[^\/;.,?]*$/ # validates_numericality_of :latitude, :longitude validates_inclusion_of :public, :inserted, :in => [ true, false]