From 8f6bd6fa6f165f5a069f0cf6844cf2278d97ea6e Mon Sep 17 00:00:00 2001 From: Robin Dupret Date: Sun, 16 Jul 2017 17:33:49 +0200 Subject: Fix code formatting for QueryMethods#select [ci skip] --- activerecord/lib/active_record/relation/query_methods.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'activerecord') 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 Array#select. # # 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 + # Array#select. # # Second: Modifies the SELECT statement for the query so that only certain # fields are retrieved: -- cgit v1.2.3