diff options
Diffstat (limited to 'actionpack/lib/action_view/helpers/javascript_helper.rb')
-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) |