aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/reaper_test.rb
diff options
context:
space:
mode:
authorAttila Domokos <adomokos@gmail.com>2014-08-21 23:07:03 -0500
committerAttila Domokos <adomokos@gmail.com>2014-08-21 23:13:37 -0500
commit36895bd90fe02dbbf2c8461dffb30eb25c7cf3e1 (patch)
tree8e61a0c6359656afc5b73fbb360a857613e88188 /activerecord/test/cases/reaper_test.rb
parenta57f7b57976c74dd76c911f867b76197119546e6 (diff)
downloadrails-36895bd90fe02dbbf2c8461dffb30eb25c7cf3e1.tar.gz
rails-36895bd90fe02dbbf2c8461dffb30eb25c7cf3e1.tar.bz2
rails-36895bd90fe02dbbf2c8461dffb30eb25c7cf3e1.zip
Replacing an each with reduce
The functionality has not changed, but the code is more elegant by using `reduce` instead of `each`. This way no accumulator needs to be declared, no explicit return is needed.
Diffstat (limited to 'activerecord/test/cases/reaper_test.rb')
0 files changed, 0 insertions, 0 deletions