Skip to content

Commit 2170177

Browse files
authored
Merge pull request #2459 from Mubramaj/patch-1
Update add_pagination_links.md to add specific instruction for will_paginate gem
2 parents 717ac11 + 09ebef2 commit 2170177

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/howto/add_pagination_links.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def meta_attributes(collection, extra_meta = {})
128128
next_page: collection.next_page,
129129
prev_page: collection.prev_page, # use collection.previous_page when using will_paginate
130130
total_pages: collection.total_pages,
131-
total_count: collection.total_count
131+
total_count: collection.total_count # use collection.total_entries when using will_paginate
132132
}.merge(extra_meta)
133133
end
134134
```

0 commit comments

Comments
 (0)