diff options
author | Dave Rothlisberger <dave@rothlis.net> | 2008-07-31 12:46:27 -0500 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-08-03 13:57:07 +0100 |
commit | 28546e84cd8e2e975c783753117534a44d693f09 (patch) | |
tree | 2ebaa480bc4713eebc2e2afc17e65959d43afd79 /activerecord | |
parent | e5fadfea8a808b145489122d2c59a92bcbb341be (diff) | |
download | rails-28546e84cd8e2e975c783753117534a44d693f09.tar.gz rails-28546e84cd8e2e975c783753117534a44d693f09.tar.bz2 rails-28546e84cd8e2e975c783753117534a44d693f09.zip |
Flesh out documentation for the :select option to AR#find
Diffstat (limited to 'activerecord')
-rwxr-xr-x[-rw-r--r--] | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 29c2995334..1838287616 100644..100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -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. |