]> git.openstreetmap.org Git - rails.git/blob - app/models/tracetag.rb
Add report a problem link to attribution, code nicked from osm.ch
[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