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

Changeset 8313

Show
Ignore:
Timestamp:
12/05/07 21:53:53 (10 months ago)
Author:
david
Message:

Fixed that habtm associations should be able to set :select as part of their definition and have that honored [DHH]

Files:

Legend:

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

    r8306 r8313  
    11*SVN* 
    22 
     3* Fixed that habtm associations should be able to set :select as part of their definition and have that honored [DHH] 
     4 
    35* Document how the :include option can be used in Calculations::calculate.  Closes #7446 [adamwiggins, ultimoamore] 
    46 
     
    810 
    911* More complete documentation for find_by_sql. Closes #7912 [fearoffish] 
    10  
    11 * Document API for exists?'s parameter and provide examples of usage. Closes #7913 [fearoffish] 
    12  
    13 * Document API for create's attributes parameter and provide examples. Closes #7915 [fearoffish] 
    14  
    15 * Documentation for find incorrectly omits the :conditions option from various examples. Closes #7923 [mattwestcott] 
    16  
    17 * Document options and add examples for update. Closes #7985 [fearoffish] 
    18  
    19 * Document options and add examples for delete. Closes #7986 [fearoffish] 
    20  
    21 * Document options and add examples for destroy. Closes #7988 [fearoffish] 
    22  
    23 * Document options and add examples for update_all. Closes #7990 [fearoffish] 
    24  
    25 * Document options for update_counters. Closes #8091 [fearoffish] 
    26  
    27 * Add documentation about the virtual attribute added by validates_confirmation_of and its behavior. Closes #8815 [JEG2, matt, kampers] 
    28  
    29 * Add documentation for freeze and readonly related methods. Closes #8878 [pelargir, jeremymcanally] 
    30  
    31 * Document the timestamps schema definition method. Closes #9000 [mikong] 
    32  
    33 * Give examples for what tables should be called for models inside a module namespace. Closes #10288 [scott_willson] 
    34  
    35 * Document the :message option for validates_associated. Closes #10357 [dylans] 
    36  
    37 * Document automatically generated predicate methods for attributes. Closes #10373 [chuyeow] 
    3812 
    3913* Added ActiveRecord::Base#becomes to turn a record into one of another class (mostly relevant for STIs) [DHH]. Example: 
  • trunk/activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb

    r8178 r8313  
    4848          options[:conditions] = conditions 
    4949          options[:joins]      = @join_sql 
    50           options[:readonly]   = finding_with_ambiguous_select?(options[:select]
     50          options[:readonly]   = finding_with_ambiguous_select?(options[:select] || @reflection.options[:select]
    5151 
    5252          if options[:order] && @reflection.options[:order] 
     
    5858          merge_options_from_reflection!(options) 
    5959 
    60           options[:select]   ||= '*' 
     60          options[:select] ||= (@reflection.options[:select] || '*') 
    6161 
    6262          # Pass through args exactly as we received them.