diff options
author | Robin Dupret <robin.dupret@gmail.com> | 2017-07-16 17:33:49 +0200 |
---|---|---|
committer | Robin Dupret <robin.dupret@gmail.com> | 2017-07-16 17:34:26 +0200 |
commit | 8f6bd6fa6f165f5a069f0cf6844cf2278d97ea6e (patch) | |
tree | 68c4415497eaca220fa2fc88aab24884f49dfa88 /activerecord/lib/active_record | |
parent | 56b366406474c81d5c4c930f9bc31977dda4491f (diff) | |
download | rails-8f6bd6fa6f165f5a069f0cf6844cf2278d97ea6e.tar.gz rails-8f6bd6fa6f165f5a069f0cf6844cf2278d97ea6e.tar.bz2 rails-8f6bd6fa6f165f5a069f0cf6844cf2278d97ea6e.zip |
Fix code formatting for QueryMethods#select
[ci skip]
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index 9d6db3dc64..8c2d546aff 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -202,12 +202,13 @@ module ActiveRecord # Works in two unique ways. # - # First: takes a block so it can be used just like +Array#select+. + # First: takes a block so it can be used just like <tt>Array#select</tt>. # # Model.all.select { |m| m.field == value } # # This will build an array of objects from the database for the scope, - # converting them into an array and iterating through them using +Array#select+. + # converting them into an array and iterating through them using + # <tt>Array#select</tt>. # # Second: Modifies the SELECT statement for the query so that only certain # fields are retrieved: |