aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsoartec-lab <info@soartec-lab.work>2019-02-24 11:28:45 +0900
committersoartec-lab <info@soartec-lab.work>2019-02-24 11:28:45 +0900
commit2d3d2b71284c64724fe187d4f75da18093ae3192 (patch)
tree02715981eb7f012108b679a185ac0f847a3142db
parentd4d53ec4266dc99554c8d05707f8db6294ce46ac (diff)
downloadrails-2d3d2b71284c64724fe187d4f75da18093ae3192.tar.gz
rails-2d3d2b71284c64724fe187d4f75da18093ae3192.tar.bz2
rails-2d3d2b71284c64724fe187d4f75da18093ae3192.zip
How to use `select` is updated [ci skip]
-rw-r--r--guides/source/active_record_querying.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md
index fd1dcf22c0..cb738f0657 100644
--- a/guides/source/active_record_querying.md
+++ b/guides/source/active_record_querying.md
@@ -623,6 +623,8 @@ To select only a subset of fields from the result set, you can specify the subse
For example, to select only `viewable_by` and `locked` columns:
```ruby
+Client.select(:viewable_by, :locked)
+# OR
Client.select("viewable_by, locked")
```