Changeset 8870
- Timestamp:
- 02/14/08 20:06:25 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activerecord/CHANGELOG
r8867 r8870 4 4 5 5 * Improve associations performance by avoiding named block arguments. #11109 [adymo] 6 7 * Optimise the BigDecimal conversion code. #11110 [adymo] 6 8 7 9 * Introduce the :readonly option to all associations. Records from the association cannot be saved. #11084 [miloops] trunk/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
r8627 r8870 145 145 # convert something to a BigDecimal 146 146 def value_to_decimal(value) 147 if value.is_a?(BigDecimal) 147 # Using .class is faster than .is_a? and 148 # subclasses of BigDecimal will be handled 149 # in the else clause 150 if value.class == BigDecimal 148 151 value 149 152 elsif value.respond_to?(:to_d)