From 2d3d2b71284c64724fe187d4f75da18093ae3192 Mon Sep 17 00:00:00 2001 From: soartec-lab Date: Sun, 24 Feb 2019 11:28:45 +0900 Subject: How to use `select` is updated [ci skip] --- guides/source/active_record_querying.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'guides') 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") ``` -- cgit v1.2.3