mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Symbol to proc is preferred over longer form of map
This commit is contained in:
@@ -112,7 +112,7 @@ module ActiveRecord
|
||||
# end
|
||||
#
|
||||
# def self.titles
|
||||
# map {|article| article.title}
|
||||
# map(&:title)
|
||||
# end
|
||||
#
|
||||
# end
|
||||
|
||||
Reference in New Issue
Block a user