Skip to content

Commit

Permalink
use html_safe instead of deprecated html_safe!
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed May 26, 2010
1 parent 64e519c commit 21d4f83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/will_paginate/view_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def to_html
links.push page_link_or_span(@collection.next_page, 'disabled next_page', @options[:next_label])

html = links.join(@options[:separator])
html.html_safe! if html.respond_to? :html_safe!
html = html.html_safe if html.respond_to? :html_safe
@options[:container] ? @template.content_tag(:div, html, html_attributes) : html
end

Expand Down Expand Up @@ -298,7 +298,7 @@ def visible_page_numbers

def page_link_or_span(page, span_class, text = nil)
text ||= page.to_s
text.html_safe! if text.respond_to? :html_safe!
text = text.html_safe if text.respond_to? :html_safe

if page and page != current_page
classnames = span_class && span_class.index(' ') && span_class.split(' ', 2).last
Expand Down

0 comments on commit 21d4f83

Please sign in to comment.