Skip to content

Commit

Permalink
Merge pull request #2459 from Mubramaj/patch-1
Browse files Browse the repository at this point in the history
Update add_pagination_links.md to add specific instruction for will_paginate gem
  • Loading branch information
bf4 authored Feb 20, 2024
2 parents 717ac11 + 09ebef2 commit 2170177
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/howto/add_pagination_links.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def meta_attributes(collection, extra_meta = {})
next_page: collection.next_page,
prev_page: collection.prev_page, # use collection.previous_page when using will_paginate
total_pages: collection.total_pages,
total_count: collection.total_count
total_count: collection.total_count # use collection.total_entries when using will_paginate
}.merge(extra_meta)
end
```
Expand Down

0 comments on commit 2170177

Please sign in to comment.