mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
ensure it works on 3.0
This commit is contained in:
parent
b4263a8264
commit
4423fae54e
3 changed files with 3 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
|||
remote: data-remote
|
||||
paginator: the paginator that renders the pagination tags inside
|
||||
-%>
|
||||
<% paginator.render do -%>
|
||||
<%= paginator.render do -%>
|
||||
<nav class='pagination'>
|
||||
<%= current_page > 1 ? prev_link_tag : prev_span_tag %>
|
||||
<% each_page do |page| -%>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
per_page: number of items to fetch per page
|
||||
remote: data-remote
|
||||
paginator: the paginator that renders the pagination tags inside
|
||||
- paginator.render do
|
||||
= paginator.render do
|
||||
%nav.pagination
|
||||
= current_page > 1 ? prev_link_tag : prev_span_tag
|
||||
- each_page do |page|
|
||||
|
|
|
@ -79,6 +79,7 @@ module Kaminari
|
|||
# render given block as a view template
|
||||
def render(&block)
|
||||
instance_eval &block if @options[:num_pages] > 1
|
||||
nil
|
||||
end
|
||||
|
||||
# enumerate each page providing PageProxy object as the block parameter
|
||||
|
|
Loading…
Reference in a new issue