diff options
author | miloops <miloops@gmail.com> | 2008-08-30 19:49:32 -0300 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-08-30 16:35:25 -0700 |
commit | 367a55e1b8deb87e7388cb97b2ac8c28a0796c89 (patch) | |
tree | 22f27274a97f77185f85187f8593727191a324be /actionpack/lib/action_view | |
parent | cb25c4e5849dc3b803784ad985ea1cb4e43b0c74 (diff) | |
download | rails-367a55e1b8deb87e7388cb97b2ac8c28a0796c89.tar.gz rails-367a55e1b8deb87e7388cb97b2ac8c28a0796c89.tar.bz2 rails-367a55e1b8deb87e7388cb97b2ac8c28a0796c89.zip |
Allow prototype functions to receive position parameter as a symbol.
[#887 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/prototype_helper.rb | 2 |
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 94c5abe2a1..2f08583b16 100644 --- a/actionpack/lib/action_view/helpers/prototype_helper.rb +++ b/actionpack/lib/action_view/helpers/prototype_helper.rb @@ -1060,7 +1060,7 @@ module ActionView js_options['asynchronous'] = options[:type] != :synchronous js_options['method'] = method_option_to_s(options[:method]) if options[:method] - js_options['insertion'] = options[:position].to_s.downcase if options[:position] + js_options['insertion'] = "'#{options[:position].to_s.downcase}'" if options[:position] js_options['evalScripts'] = options[:script].nil? || options[:script] if options[:form] |