Skip to content

Commit

Permalink
docs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ddnexus committed Aug 5, 2018
1 parent 5227bd1 commit 6143f5f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion docs/extras/items.md
Expand Up @@ -51,7 +51,7 @@ pagy(scope, items_param: :custom_param, max_items: 50)
Pagy.new(count:100, items_param: :custom_param, max_items: 50)
```

**Notice**: you can override the items that the client send with the params by passing the `:items` explicitly. For example:
**Notice**: you can override the items that the client sends with the params by passing the `:items` explicitly. For example:

```ruby
# this will ignore the params[:item] (or any custom :param_name)
Expand Down
1 change: 0 additions & 1 deletion docs/extras/out_of_range.md
Expand Up @@ -78,7 +78,6 @@ pagy.last #=> 5
pagy.last == pagy.prev #=> true (the prev page is the last page relative to out of range page)
pagy.next #=> nil
pagy.offset #=> 0
pagy.items #=> 0
pagy.from #=> 0
pagy.to #=> 0
pagy.series #=> [1, 2, 3, 4, 5] (no string, so no current page highlighted in the UI)
Expand Down

0 comments on commit 6143f5f

Please sign in to comment.