Permalink
Browse files

Symbol to proc is preferred over longer form of map

  • Loading branch information...
1 parent 04d5dec commit cf07da0929bbeaaeb68cbafbb600727b3bda470e @radar radar committed Mar 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/named_scope.rb
View
2 activerecord/lib/active_record/named_scope.rb
@@ -112,7 +112,7 @@ def scoped(options = nil)
# end
#
# def self.titles
- # map {|article| article.title}
+ # map(&:title)
# end
#
# end

0 comments on commit cf07da0

Please sign in to comment.