Changeset 8332
- Timestamp:
- 12/08/07 00:12:52 (9 months ago)
- Files:
-
- trunk/activesupport/CHANGELOG (modified) (1 diff)
- trunk/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb (modified) (1 diff)
- trunk/activesupport/test/core_ext/hash_ext_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activesupport/CHANGELOG
r8330 r8332 1 * Fix HashWithIndifferentAccess#to_options! so it doesn't clear the options hash. Closes #10419 [ReinH] 2 1 3 *2.0.1* (December 7th, 2007) 2 4 trunk/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb
r6532 r8332 64 64 def stringify_keys!; self end 65 65 def symbolize_keys!; self end 66 def to_options!; self end 66 67 67 68 # Convert to a Hash with String keys. trunk/activesupport/test/core_ext/hash_ext_test.rb
r8202 r8332 205 205 assert_equal 1, h[:first] 206 206 end 207 208 def test_to_options_on_indifferent_preserves_hash 209 h = HashWithIndifferentAccess.new 210 h['first'] = 1 211 h.to_options! 212 assert_equal 1, h['first'] 213 end 214 207 215 208 216 def test_indifferent_subhashes