X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a7d41f09eb65c2a84fb612b476395826d198d0d9..afe8ffffe945eb3201a9c6e3b10157c55d167488:/app/models/trace.rb diff --git a/app/models/trace.rb b/app/models/trace.rb index 4f21c8b25..11f912b69 100644 --- a/app/models/trace.rb +++ b/app/models/trace.rb @@ -1,7 +1,8 @@ class Trace < ActiveRecord::Base set_table_name 'gpx_files' - validates_presence_of :user_id, :name, :public, :description, :timestamp + validates_presence_of :user_id, :name, :public, :timestamp + validates_presence_of :description, :on => :create # validates_numericality_of :latitude, :longitude validates_inclusion_of :inserted, :in => [ true, false]