diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-10 05:11:23 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-10 05:11:23 +0000 |
commit | 383b6afd1c943096951ea845b3fc726f4d2193a6 (patch) | |
tree | cd1caa23881042d662730030517ad52c0efa00d0 /actionpack/lib | |
parent | c697be5b696fb3f49545aca12b35ac7feee05925 (diff) | |
download | rails-383b6afd1c943096951ea845b3fc726f4d2193a6.tar.gz rails-383b6afd1c943096951ea845b3fc726f4d2193a6.tar.bz2 rails-383b6afd1c943096951ea845b3fc726f4d2193a6.zip |
Made JavaScriptHelper tests pass regardless of hash order #1656 [Sam Stephenson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1794 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/javascript_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/javascript_helper.rb b/actionpack/lib/action_view/helpers/javascript_helper.rb index c0ef3e3f99..7dd74f20ff 100644 --- a/actionpack/lib/action_view/helpers/javascript_helper.rb +++ b/actionpack/lib/action_view/helpers/javascript_helper.rb @@ -504,7 +504,7 @@ module ActionView private def options_for_javascript(options) - '{' + options.map {|k, v| "#{k}:#{v}"}.join(', ') + '}' + '{' + options.map {|k, v| "#{k}:#{v}"}.sort.join(', ') + '}' end def options_for_ajax(options) |