Module: Pagify::Helper::Rails
Instance Method Summary collapse
- #pagify_links(objs, &path) ⇒ Object (also: #would_paginate)
Instance Method Details
#pagify_links(objs, &path) ⇒ Object Also known as: would_paginate
6 7 8 9 |
# File 'lib/pagify/helper/rails.rb', line 6 def pagify_links objs, &path super(objs, :path => lambda{ block_given? ? path.call : request.path }, :page => lambda{ |name| params[name] }) end |