aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/eye.rb
Commit message (Collapse)AuthorAgeFilesLines
* use persisted? instead of new_record? wherever possibleDavid Chelimsky2010-11-091-1/+1
| | | | | | | | | | | - persisted? is the API defined in ActiveModel - makes it easier for extension libraries to conform to ActiveModel APIs without concern for whether the extended object is specifically ActiveRecord [#5927 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* has_one maintains the association with separate after_create/after_updateXavier Noria2010-10-221-0/+37
This way parent models can get their own after_create and after_update callbacks fired after has_one has done its job.