Skip to content

Commit

Permalink
Fixed deprecation warning about html_safe!
Browse files Browse the repository at this point in the history
  • Loading branch information
kpumuk committed Jun 2, 2010
1 parent 0bb4460 commit 8aafb6d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/meta_tags/view_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ def display_meta_tags(default = {})
result << tag(:link, :rel => :canonical, :href => meta_tags[:canonical]) unless meta_tags[:canonical].blank?

result = result.join("\n")
result.html_safe! if result.respond_to?(:html_safe!)
result
result.respond_to?(:html_safe) ? result.html_safe : result
end

private
Expand Down

0 comments on commit 8aafb6d

Please sign in to comment.