]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/tracetag.rb
Rename xml processing methods with an update_ prefix
[rails.git] / app / models / tracetag.rb
index 35513783110db7f174b5f20ed7755712db961b79..9d21959205cbcd12edb261fa7ea81fccd4c0fc01 100644 (file)
@@ -3,6 +3,6 @@ class Tracetag < ActiveRecord::Base
 
   belongs_to :trace, :foreign_key => "gpx_id"
 
-  validates :trace, :presence => true, :associated => true
-  validates :tag, :length => 1..255, :format => /\A[^\/;.,?]*\z/
+  validates :trace, :associated => true
+  validates :tag, :length => 1..255, :format => %r{\A[^/;.,?]*\z}
 end