module Roda::RodaPlugins::WillPaginate
Public Class Methods
configure(app, opts = {})
click to toggle source
# File lib/roda/plugins/will_paginate.rb, line 7 def self.configure(app, opts = {}) app.opts[:will_paginate] = opts.dup opts = app.opts[:will_paginate] opts[:renderer] ||= ::Roda::WillPaginate::LinkRenderer if opts[:renderer].is_a?(Symbol) c_name = "Roda::WillPaginate::#{opts[:renderer].to_s.capitalize}PaginationRenderer" opts[:renderer] = const_get(c_name) end end