diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-02-24 14:39:54 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-24 14:39:54 +0900 |
commit | 2328fb6695989cd52f9903a0e837a0b0bf3726ba (patch) | |
tree | 77974d85702ec987516529d32d3f1b2c8dbd862b | |
parent | 90f853581a4122c8afa48094d45ebda893a5b9c9 (diff) | |
parent | 2d3d2b71284c64724fe187d4f75da18093ae3192 (diff) | |
download | rails-2328fb6695989cd52f9903a0e837a0b0bf3726ba.tar.gz rails-2328fb6695989cd52f9903a0e837a0b0bf3726ba.tar.bz2 rails-2328fb6695989cd52f9903a0e837a0b0bf3726ba.zip |
Merge pull request #35383 from soartec-lab/update_guide_activerecord_querying
How to use `select` is updated [ci skip]
-rw-r--r-- | guides/source/active_record_querying.md | 2 |
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") ``` |