aboutsummaryrefslogtreecommitdiffstats
path: root/guides/code/getting_started/vendor
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-01-03 01:15:12 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-01-06 10:54:22 -0200
commit7843e009d2bc8d088437ff6f43e47ba113de9dee (patch)
treed7c80cda26ec2304c3281a3bbae8179e5262976a /guides/code/getting_started/vendor
parente56e3db6e6c3ed1618311122c51066a8ac8beb0e (diff)
downloadrails-7843e009d2bc8d088437ff6f43e47ba113de9dee.tar.gz
rails-7843e009d2bc8d088437ff6f43e47ba113de9dee.tar.bz2
rails-7843e009d2bc8d088437ff6f43e47ba113de9dee.zip
Refactor the logic that checks whether or not to emit the hidden id field
By checking for object.persisted? first, we avoid the hash lookups for new objects.
Diffstat (limited to 'guides/code/getting_started/vendor')
0 files changed, 0 insertions, 0 deletions