Skip to content
This repository
Browse code

Symbol to proc is preferred over longer form of map

  • Loading branch information...
commit cf07da0929bbeaaeb68cbafbb600727b3bda470e 1 parent 04d5dec
Ryan Bigg radar authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  activerecord/lib/active_record/named_scope.rb
2  activerecord/lib/active_record/named_scope.rb
@@ -112,7 +112,7 @@ def scoped(options = nil)
112 112 # end
113 113 #
114 114 # def self.titles
115   - # map {|article| article.title}
  115 + # map(&:title)
116 116 # end
117 117 #
118 118 # end

0 comments on commit cf07da0

Please sign in to comment.
Something went wrong with that request. Please try again.