repo.or.cz
/
railsex.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Lazy attributes and partial updates
[railsex.git]
/
test
/
app
/
models
/
person.rb
blob
26f0003d1489576df1a67018eb92179ca728ce9d
1
class Person < ActiveRecord::Base
2
lazy_attributes :history, :bio
3
validates_presence_of :name, :address, :age
4
end