diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-06-07 10:23:25 -0600 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-06-07 10:23:25 -0600 |
commit | 35164093f5005c4312674bf3e00e2a92e2e3c7e5 (patch) | |
tree | 743bc5f769f8fcd73d160a32b0632b50f2667a38 /README.md | |
parent | 287e926d564bbe8db6baad85d35276042e0dc47a (diff) | |
download | rails-35164093f5005c4312674bf3e00e2a92e2e3c7e5.tar.gz rails-35164093f5005c4312674bf3e00e2a92e2e3c7e5.tar.bz2 rails-35164093f5005c4312674bf3e00e2a92e2e3c7e5.zip |
Remove dead branch when restoring ID within a transaction
There is no way to have an instance of an Active Record model where
`has_attribute?(self.class.primary_key)` returns false. The record is
always initialized in such a way that `@raw_attributes` will have an id
key with nil for the value.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions