Symbol to proc is preferred over longer form of map

This commit is contained in:
Ryan Bigg
2011-03-31 06:59:48 +11:00
parent 04d5decfd3
commit cf07da0929

View File

@@ -112,7 +112,7 @@ module ActiveRecord
# end
#
# def self.titles
# map {|article| article.title}
# map(&:title)
# end
#
# end