Flesh out documentation for the :select option to AR#find

This commit is contained in:
Dave Rothlisberger
2008-07-31 12:46:27 -05:00
committed by Pratik Naik
parent e5fadfea8a
commit 28546e84cd

2
activerecord/lib/active_record/base.rb Normal file → Executable file
View 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.