aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authormiloops <miloops@gmail.com>2008-07-31 16:09:18 -0300
committerMichael Koziarski <michael@koziarski.com>2008-07-31 21:28:12 +0200
commitf3da46effae9f23f6ea473f7296e9c0c9bb49fce (patch)
tree308a7248051c36a2ca39f3559f84c96c70e8f550 /actionpack/lib/action_view
parentcb68b21a52a12b0773f0b4dac1c9c673c93ba355 (diff)
downloadrails-f3da46effae9f23f6ea473f7296e9c0c9bb49fce.tar.gz
rails-f3da46effae9f23f6ea473f7296e9c0c9bb49fce.tar.bz2
rails-f3da46effae9f23f6ea473f7296e9c0c9bb49fce.zip
In javascript helpers option[:type] = :synchronous should work as described in docs.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/helpers/prototype_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/prototype_helper.rb b/actionpack/lib/action_view/helpers/prototype_helper.rb
index 5194f00382..4c3a8311a5 100644
--- a/actionpack/lib/action_view/helpers/prototype_helper.rb
+++ b/actionpack/lib/action_view/helpers/prototype_helper.rb
@@ -111,7 +111,7 @@ module ActionView
(100..599).to_a)
AJAX_OPTIONS = Set.new([ :before, :after, :condition, :url,
:asynchronous, :method, :insertion, :position,
- :form, :with, :update, :script ]).merge(CALLBACKS)
+ :form, :with, :update, :script, :type ]).merge(CALLBACKS)
end
# Returns a link to a remote action defined by <tt>options[:url]</tt>