config/initializers/will_paginate.rb in casein-5.1.1.5 vs config/initializers/will_paginate.rb in casein-5.2.0.0
- old
+ new
@@ -18,23 +18,23 @@
class BootstrapLinkRenderer < LinkRenderer
protected
def html_container(html)
- tag :div, tag(:ul, html, :class => "pagination"), container_attributes
+ tag :div, tag(:ul, html, class: "pagination"), container_attributes
end
def page_number(page)
- tag :li, link(page, page, :rel => rel_value(page)), :class => ('active' if page == current_page)
+ tag :li, link(page, page, rel: rel_value(page)), class: ('active' if page == current_page)
end
def gap
- tag :li, link('…'.html_safe, '#'), :class => 'disabled'
+ tag :li, link('…'.html_safe, '#'), class: 'disabled'
end
def previous_or_next_page(page, text, classname)
tag :li, link(text, page || '#'),
- :class => [(classname[0..3] if @options[:page_links]), (classname if @options[:page_links]), ('disabled' unless page)].join(' ')
+ class: [(classname[0..3] if @options[:page_links]), (classname if @options[:page_links]), ('disabled' unless page)].join(' ')
end
end
end
end
\ No newline at end of file