Skip to content

Commit

Permalink
sort => sort! on new array
Browse files Browse the repository at this point in the history
  • Loading branch information
vipulnsward committed May 10, 2013
1 parent 4ae2309 commit 690fd22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/helpers/tag_helper.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 690fd22

Please sign in to comment.