Skip to content

Instantly share code, notes, and snippets.

View ognjenio's full-sized avatar

Ognjen Regoje ognjenio

View GitHub Profile
# config/initializers/will_paginate.rb
module WillPaginate
module ActionView
def will_paginate(collection = nil, options = {})
options[:renderer] ||= BootstrapLinkRenderer
super.try :html_safe
end
class BootstrapLinkRenderer < LinkRenderer