rails_port_0.5: Merge rails_port.
[rails.git] / app / models / diary_entry.rb
1 class DiaryEntry < ActiveRecord::Base
2   belongs_to :user
3
4   validates_presence_of :title, :body
5   validates_numericality_of :latitude, :allow_nil => true
6   validates_numericality_of :longitude, :allow_nil => true
7   validates_associated :user
8 end