Changeset 9020
- Timestamp:
- 03/13/08 03:22:25 (7 months ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_controller/request.rb (modified) (1 diff)
- trunk/actionpack/test/controller/request_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r9016 r9020 1 1 *SVN* 2 3 * Fix more obscure nested parameter hash parsing bug. #10797 [thomas.lee] 2 4 3 5 * Added ActionView::Helpers::register_javascript/stylesheet_expansion to make it easier for plugin developers to inject multiple assets #10350 [lotswholetime] trunk/actionpack/lib/action_controller/request.rb
r9010 r9020 683 683 key = CGI.unescape(key) 684 684 parent << (@top = {}) if top.key?(key) && parent.is_a?(Array) 685 return top[key] ||= value 685 top[key] ||= value 686 return top[key] 686 687 else 687 688 raise ArgumentError, "Don't know what to do: top is #{top.inspect}" trunk/actionpack/test/controller/request_test.rb
r9010 r9020 712 712 assert_equal expected, ActionController::AbstractRequest.parse_request_parameters(input) 713 713 end 714 715 def test_parse_params_with_complex_nesting 716 input = { "a[][b][c][][d][]" => %w(e) } 717 expected = {"a" => [{"b" => {"c" => [{"d" => ["e"]}]}}]} 718 assert_equal expected, ActionController::AbstractRequest.parse_request_parameters(input) 719 end 714 720 end 715 721