aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/named_scope.rb
diff options
context:
space:
mode:
authorRyan Bigg <radarlistener@gmail.com>2011-03-31 06:59:48 +1100
committerRyan Bigg <radarlistener@gmail.com>2011-03-31 06:59:48 +1100
commitcf07da0929bbeaaeb68cbafbb600727b3bda470e (patch)
treebf2e1061f8cb0841c057122503e4a0c422cda580 /activerecord/lib/active_record/named_scope.rb
parent04d5decfd3c8f899df462bfc7f1ccb9770542a97 (diff)
downloadrails-cf07da0929bbeaaeb68cbafbb600727b3bda470e.tar.gz
rails-cf07da0929bbeaaeb68cbafbb600727b3bda470e.tar.bz2
rails-cf07da0929bbeaaeb68cbafbb600727b3bda470e.zip
Symbol to proc is preferred over longer form of map
Diffstat (limited to 'activerecord/lib/active_record/named_scope.rb')
-rw-r--r--activerecord/lib/active_record/named_scope.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/named_scope.rb b/activerecord/lib/active_record/named_scope.rb
index 8eb87f7b7a..d5fff65303 100644
--- a/activerecord/lib/active_record/named_scope.rb
+++ b/activerecord/lib/active_record/named_scope.rb
@@ -112,7 +112,7 @@ module ActiveRecord
# end
#
# def self.titles
- # map {|article| article.title}
+ # map(&:title)
# end
#
# end