diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-07 08:46:31 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-07-07 08:46:31 +0000 |
commit | 5a9a93d28f2233d8ceec11a931153eb87c6b40b5 (patch) | |
tree | c82576d49319c55a0fead1db48d189be18e51219 /actionpack | |
parent | 863948fcaa3a3afd1ec4db6c4829670b2e286f01 (diff) | |
download | rails-5a9a93d28f2233d8ceec11a931153eb87c6b40b5.tar.gz rails-5a9a93d28f2233d8ceec11a931153eb87c6b40b5.tar.bz2 rails-5a9a93d28f2233d8ceec11a931153eb87c6b40b5.zip |
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
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/CHANGELOG | 2 | ||||
-rw-r--r-- | actionpack/lib/action_view/helpers/javascript_helper.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 37577f03b8..87afe5647b 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Fixed JavascriptHelper#visual_effect to use camelize such that :blind_up will work #1639 [pelletierm@eastmedia.net] + * 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. diff --git a/actionpack/lib/action_view/helpers/javascript_helper.rb b/actionpack/lib/action_view/helpers/javascript_helper.rb index 2a1b72396a..1512ea0720 100644 --- a/actionpack/lib/action_view/helpers/javascript_helper.rb +++ b/actionpack/lib/action_view/helpers/javascript_helper.rb @@ -419,7 +419,7 @@ module ActionView # http://script.aculo.us for more documentation. def visual_effect(name, element_id = false, js_options = {}) element = element_id ? "'#{element_id}'" : "element" - "new Effect.#{name.to_s.capitalize}(#{element},#{options_for_javascript(js_options)});" + "new Effect.#{name.to_s.camelize}(#{element},#{options_for_javascript(js_options)});" end # Makes the element with the DOM ID specified by +element_id+ sortable |