diff options
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/prototype_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/prototype_helper.rb b/actionpack/lib/action_view/helpers/prototype_helper.rb index 1ba607a90f..94de4613ce 100644 --- a/actionpack/lib/action_view/helpers/prototype_helper.rb +++ b/actionpack/lib/action_view/helpers/prototype_helper.rb @@ -435,12 +435,12 @@ module ActionView # Shows hidden DOM elements with the given +ids+. def show(*ids) - record "#{ids.inspect}.each(Element.show)" + record "Element.show(#{ids.map {|id| id.inspect} * ', '})" end # Hides the visible DOM elements with the given +ids+. def hide(*ids) - record "#{ids.inspect}.each(Element.hide)" + record "Element.hide(#{ids.map {|id| id.inspect} * ', '})" end private |