mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Flesh out documentation for the :select option to AR#find
This commit is contained in:
committed by
Pratik Naik
parent
e5fadfea8a
commit
28546e84cd
2
activerecord/lib/active_record/base.rb
Normal file → Executable file
2
activerecord/lib/active_record/base.rb
Normal file → Executable file
@@ -507,7 +507,7 @@ module ActiveRecord #:nodoc:
|
||||
# * <tt>:include</tt> - Names associations that should be loaded alongside. The symbols named refer
|
||||
# to already defined associations. See eager loading under Associations.
|
||||
# * <tt>:select</tt> - By default, this is "*" as in "SELECT * FROM", but can be changed if you, for example, want to do a join but not
|
||||
# include the joined columns.
|
||||
# include the joined columns. Takes a string with the SELECT SQL fragment (e.g. "id, name").
|
||||
# * <tt>:from</tt> - By default, this is the table name of the class, but can be changed to an alternate table name (or even the name
|
||||
# of a database view).
|
||||
# * <tt>:readonly</tt> - Mark the returned records read-only so they cannot be saved or updated.
|
||||
|
||||
Reference in New Issue
Block a user