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

Changeset 7012

Show
Ignore:
Timestamp:
06/13/07 01:26:36 (1 year ago)
Author:
bitsweat
Message:

1-2-stable: changing the :default Date format doesn't break date quoting. Closes #6312.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1-2-stable/activerecord/CHANGELOG

    r6880 r7012  
    11*SVN* 
    22 
    3 * Allow nil serialized attributes with a set class constraint. #7293 [sandofsky]  
     3* Changing the :default Date format doesn't break date quoting.  #6312 [bshand, Elias] 
     4 
     5* Allow nil serialized attributes with a set class constraint. #7293 [sandofsky] 
    46 
    57* belongs_to assignment creates a new proxy rather than modifying its target in-place.  #8412 [mmangino@elevatedrails.com] 
  • branches/1-2-stable/activerecord/lib/active_record/connection_adapters/abstract/quoting.rb

    r5598 r7012  
    2525          # BigDecimals need to be output in a non-normalized form and quoted. 
    2626          when BigDecimal               then value.to_s('F') 
    27           when Date                     then "'#{value.to_s}'" 
     27          when Date                     then "'#{value.to_s(:db)}'" 
    2828          when Time, DateTime           then "'#{quoted_date(value)}'" 
    2929          else                          "'#{quote_string(value.to_yaml)}'"