Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4739

Show
Ignore:
Timestamp:
08/09/06 15:11:18 (2 years ago)
Author:
marcel
Message:

Document find's :from option. Closes #5762. [andrew@redlinesoftware.com]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activerecord/CHANGELOG

    r4737 r4739  
    11*SVN* 
     2 
     3* Document find's :from option. Closes #5762. [andrew@redlinesoftware.com] 
    24 
    35* PostgreSQL: autodetected sequences work correctly with multiple schemas. Rely on the schema search_path instead of explicitly qualifying the sequence name with its schema.  #5280 [guy.naor@famundo.com] 
  • trunk/activerecord/lib/active_record/base.rb

    r4728 r4739  
    375375      # * <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 
    376376      #   include the joined columns. 
     377      # * <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 
     378      #   of a database view).  
    377379      # * <tt>:readonly</tt>: Mark the returned records read-only so they cannot be saved or updated. 
    378380      # * <tt>:lock</tt>: An SQL fragment like "FOR UPDATE" or "LOCK IN SHARE MODE".