]> git.openstreetmap.org Git - rails.git/blob - app/models/tracetag.rb
Assert there are no diary comments before creating one.
[rails.git] / app / models / tracetag.rb
1 class Tracetag < ActiveRecord::Base
2   self.table_name = "gpx_file_tags"
3
4   belongs_to :trace, :foreign_key => "gpx_id"
5
6   validates :trace, :associated => true
7   validates :tag, :length => 1..255, :format => %r{\A[^/;.,?]*\z}
8 end