diff options
author | Ryan Bigg <radarlistener@gmail.com> | 2011-03-31 06:59:48 +1100 |
---|---|---|
committer | Ryan Bigg <radarlistener@gmail.com> | 2011-03-31 06:59:48 +1100 |
commit | cf07da0929bbeaaeb68cbafbb600727b3bda470e (patch) | |
tree | bf2e1061f8cb0841c057122503e4a0c422cda580 | |
parent | 04d5decfd3c8f899df462bfc7f1ccb9770542a97 (diff) | |
download | rails-cf07da0929bbeaaeb68cbafbb600727b3bda470e.tar.gz rails-cf07da0929bbeaaeb68cbafbb600727b3bda470e.tar.bz2 rails-cf07da0929bbeaaeb68cbafbb600727b3bda470e.zip |
Symbol to proc is preferred over longer form of map
-rw-r--r-- | activerecord/lib/active_record/named_scope.rb | 2 |
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 |