Update README, extra kaminari methods delegation.
- In order to use kaminari's helper method `page_entries_info`, you need to delegate `:entry_name`, `:total_count`, `:offset_value` and `:last_page?`.
This commit is contained in:
parent
ff41f17fa3
commit
94cd6f8ded
|
@ -260,7 +260,7 @@ the `object`:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
class PaginatingDecorator < Draper::CollectionDecorator
|
class PaginatingDecorator < Draper::CollectionDecorator
|
||||||
delegate :current_page, :total_pages, :limit_value
|
delegate :current_page, :total_pages, :limit_value, :entry_name, :total_count, :offset_value, :last_page?
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue