diff options
author | Vipul A M <vipulnsward@gmail.com> | 2013-05-10 11:21:58 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2013-05-10 11:21:58 +0530 |
commit | 690fd221c56bfec04cee9c94e8406b93203215ac (patch) | |
tree | 2536b23df6861f07afec912795f38e509241ecaf /actionpack/lib/action_view/helpers | |
parent | 4ae2309418fde718bd995d72b42672228a2f18b4 (diff) | |
download | rails-690fd221c56bfec04cee9c94e8406b93203215ac.tar.gz rails-690fd221c56bfec04cee9c94e8406b93203215ac.tar.bz2 rails-690fd221c56bfec04cee9c94e8406b93203215ac.zip |
sort => sort! on new array
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/tag_helper.rb | 2 |
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) |