Changeset 8974
- Timestamp:
- 03/03/08 03:31:57 (2 months ago)
- Files:
-
- trunk/activesupport/CHANGELOG (modified) (1 diff)
- trunk/activesupport/lib/active_support/ordered_options.rb (modified) (1 diff)
- trunk/activesupport/test/core_ext/enumerable_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activesupport/CHANGELOG
r8935 r8974 1 1 *SVN* 2 3 * Add OrderedHash#to_hash [josh] 2 4 3 5 * Adding Time#end_of_day, _quarter, _week, and _year. #9312 [Juanjo Bazan, Tarmo TÀnav, BigTitus] trunk/activesupport/lib/active_support/ordered_options.rb
r7817 r8974 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 trunk/activesupport/test/core_ext/enumerable_test.rb
r8700 r8974 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