aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/RUNNING_UNIT_TESTS
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-08-21 00:50:42 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-08-21 00:50:43 -0300
commit15e2b80a27c7fd48f1a3e22d1682281515b2c371 (patch)
tree0e7efe1923500601e1805a3b4d8c5a8a948b10f7 /actionpack/RUNNING_UNIT_TESTS
parente7ffa779322fcd864afe2b94c6fceaa3181535fb (diff)
downloadrails-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 'actionpack/RUNNING_UNIT_TESTS')
0 files changed, 0 insertions, 0 deletions