mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
Fix builds for kaminari-mongoid
fixes builds in https://travis-ci.org/kaminari/kaminari-mongoid/builds/402043846
This commit is contained in:
parent
ee49f289ee
commit
a43335cc31
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ module Kaminari
|
|||
t('helpers.page_entries_info.one_page.display_entries', entry_name: entry_name, count: collection.total_count)
|
||||
else
|
||||
from = collection.offset_value + 1
|
||||
to = collection.offset_value + collection.size
|
||||
to = collection.offset_value + collection.to_a.size
|
||||
|
||||
t('helpers.page_entries_info.more_pages.display_entries', entry_name: entry_name, first: from, last: to, total: collection.total_count)
|
||||
end.html_safe
|
||||
|
|
Loading…
Reference in a new issue