aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/tag_helper.rb
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-05-10 11:21:58 +0530
committerVipul A M <vipulnsward@gmail.com>2013-05-10 11:21:58 +0530
commit690fd221c56bfec04cee9c94e8406b93203215ac (patch)
tree2536b23df6861f07afec912795f38e509241ecaf /actionpack/lib/action_view/helpers/tag_helper.rb
parent4ae2309418fde718bd995d72b42672228a2f18b4 (diff)
downloadrails-690fd221c56bfec04cee9c94e8406b93203215ac.tar.gz
rails-690fd221c56bfec04cee9c94e8406b93203215ac.tar.bz2
rails-690fd221c56bfec04cee9c94e8406b93203215ac.zip
sort => sort! on new array
Diffstat (limited to 'actionpack/lib/action_view/helpers/tag_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/tag_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/tag_helper.rb b/actionpack/lib/action_view/helpers/tag_helper.rb
index 8c7524e795..3939e4737b 100644
--- a/actionpack/lib/action_view/helpers/tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/tag_helper.rb
@@ -148,7 +148,7 @@ module ActionView
attrs << tag_option(key, value, escape)
end
end
- " #{attrs.sort * ' '}".html_safe unless attrs.empty?
+ " #{attrs.sort! * ' '}".html_safe unless attrs.empty?
end
def data_tag_option(key, value, escape)