diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-01-03 01:15:12 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-01-06 10:54:22 -0200 |
commit | 7843e009d2bc8d088437ff6f43e47ba113de9dee (patch) | |
tree | d7c80cda26ec2304c3281a3bbae8179e5262976a /guides/code/getting_started/vendor | |
parent | e56e3db6e6c3ed1618311122c51066a8ac8beb0e (diff) | |
download | rails-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