]> git.openstreetmap.org Git - rails.git/blob - app/models/diary_entry.rb
Block bots from /trace/, so they don't attempt to eat all the GPX data.
[rails.git] / app / models / diary_entry.rb
1 class DiaryEntry < ActiveRecord::Base
2   belongs_to :user
3   has_many :diary_comments, :order => "id"
4
5   validates_presence_of :title, :body
6   validates_numericality_of :latitude, :allow_nil => true
7   validates_numericality_of :longitude, :allow_nil => true
8   validates_associated :user
9 end