diff options
| author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-09-07 14:31:49 -0300 |
|---|---|---|
| committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-09-07 14:31:49 -0300 |
| commit | ec39055456339f69e0171aec89c7d3a711137f13 (patch) | |
| tree | f7acf39e8913ea8d98cfdc56e1a04dca2ba22ff7 /activemodel/README.rdoc | |
| parent | e371c6603541ffeae35d3388f39b853b0d372144 (diff) | |
| download | rails-ec39055456339f69e0171aec89c7d3a711137f13.tar.gz rails-ec39055456339f69e0171aec89c7d3a711137f13.tar.bz2 rails-ec39055456339f69e0171aec89c7d3a711137f13.zip | |
Minor refactor in ActiveRecord#initialize_dup
* There is no need to delete the primary key from cloned attributes,
since it sets the same pk to nil afterwards.
* Check for empty? instead of any? to run initialize callbacks.
Diffstat (limited to 'activemodel/README.rdoc')
0 files changed, 0 insertions, 0 deletions
