diff options
Diffstat (limited to 'actionpack/lib/action_view/helpers/upload_progress_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/upload_progress_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/upload_progress_helper.rb b/actionpack/lib/action_view/helpers/upload_progress_helper.rb index 04b14c0c17..8563ca3beb 100644 --- a/actionpack/lib/action_view/helpers/upload_progress_helper.rb +++ b/actionpack/lib/action_view/helpers/upload_progress_helper.rb @@ -196,7 +196,7 @@ module ActionView updater = "if (#{upload_update_object}) { #{upload_update_object}.stop(); }" updater << "#{upload_update_object} = new Ajax.PeriodicalUpdater('#{status_tag_id}'," - updater << "'#{status_url}', #{options_for_ajax(options)}.extend(#{updater_options}))" + updater << "'#{status_url}', Object.extend(#{options_for_ajax(options)},#{updater_options}))" updater = "#{options[:begin]}; #{updater}" if options[:begin] updater = "#{upload_progress_update_bar_js(0)}; #{updater}" |