Skip to content

Commit

Permalink
Fix builds for kaminari-mongoid
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki24 committed Jul 16, 2018
1 parent ee49f28 commit a43335c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kaminari-core/lib/kaminari/helpers/helper_methods.rb
Expand Up @@ -204,7 +204,7 @@ def page_entries_info(collection, entry_name: nil)
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
Expand Down

0 comments on commit a43335c

Please sign in to comment.