1
0
Fork 0
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:
Yuki Nishijima 2018-07-15 20:45:53 -04:00
parent ee49f289ee
commit a43335cc31

View file

@ -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