Changeset 8973
- Timestamp:
- 03/03/08 03:30:57 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2-0-stable/activesupport/lib/active_support/ordered_options.rb
r7817 r8973 27 27 collect { |key, value| value } 28 28 end 29 30 def to_hash 31 returning({}) do |hash| 32 each { |array| hash[array[0]] = array[1] } 33 end 34 end 29 35 end 30 36 end branches/2-0-stable/activesupport/test/core_ext/enumerable_test.rb
r8946 r8973 23 23 24 24 assert_equal objects.uniq.map(&:name), grouped.keys 25 assert({}.merge(grouped), "Could not convert ActiveSupport::OrderedHash into Hash") 25 26 end 26 27