projects
/
rails.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Specify display_name and tag explicitly when generating pagination links
[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