Skip to content
This repository
Browse code

Fixed JavascriptHelper#visual_effect to use camelize such that :blind…

…_up will work #1639 [pelletierm@eastmedia.net]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1754 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 5a9a93d28f2233d8ceec11a931153eb87c6b40b5 1 parent 863948f
David Heinemeier Hansson dhh authored
2  actionpack/CHANGELOG
... ... @@ -1,5 +1,7 @@
1 1 *SVN*
2 2
  3 +* Fixed JavascriptHelper#visual_effect to use camelize such that :blind_up will work #1639 [pelletierm@eastmedia.net]
  4 +
3 5 * Fixed that a SessionRestoreError was thrown if a model object was placed in the session that wasn't available to all controllers. This means that it's no longer necessary to use the 'model :post' work-around in ApplicationController to have a Post model in your session.
4 6
5 7
2  actionpack/lib/action_view/helpers/javascript_helper.rb
@@ -419,7 +419,7 @@ def text_field_with_auto_complete(object, method, tag_options = {}, completion_o
419 419 # http://script.aculo.us for more documentation.
420 420 def visual_effect(name, element_id = false, js_options = {})
421 421 element = element_id ? "'#{element_id}'" : "element"
422   - "new Effect.#{name.to_s.capitalize}(#{element},#{options_for_javascript(js_options)});"
  422 + "new Effect.#{name.to_s.camelize}(#{element},#{options_for_javascript(js_options)});"
423 423 end
424 424
425 425 # Makes the element with the DOM ID specified by +element_id+ sortable

0 comments on commit 5a9a93d

Please sign in to comment.
Something went wrong with that request. Please try again.