diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-08-21 00:50:42 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-08-21 00:50:43 -0300 |
commit | 15e2b80a27c7fd48f1a3e22d1682281515b2c371 (patch) | |
tree | 0e7efe1923500601e1805a3b4d8c5a8a948b10f7 /activerecord/test/cases/inclusion_test.rb | |
parent | e7ffa779322fcd864afe2b94c6fceaa3181535fb (diff) | |
download | rails-15e2b80a27c7fd48f1a3e22d1682281515b2c371.tar.gz rails-15e2b80a27c7fd48f1a3e22d1682281515b2c371.tar.bz2 rails-15e2b80a27c7fd48f1a3e22d1682281515b2c371.zip |
Minor refactoring in Active Record model schema methods
* Use each_key instead of generating intermediate keys array.
* Use each_with_object instead of inject to build hash.
* Use ternary to return instead of if + assignment.
Diffstat (limited to 'activerecord/test/cases/inclusion_test.rb')
0 files changed, 0 insertions, 0 deletions