Permalink
Browse files

sort => sort! on new array

  • Loading branch information...
1 parent 4ae2309 commit 690fd221c56bfec04cee9c94e8406b93203215ac @vipulnsward vipulnsward committed May 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/tag_helper.rb
View
2 actionpack/lib/action_view/helpers/tag_helper.rb
@@ -148,7 +148,7 @@ def tag_options(options, escape = true)
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)

0 comments on commit 690fd22

Please sign in to comment.