Skip to content

Commit

Permalink
Adds parentheses (#249) [ci-skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
epeirce committed Jul 2, 2020
1 parent 8673ca4 commit 515de9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/how-to.md
Expand Up @@ -305,7 +305,7 @@ You have a few ways to do that:

3. you can override entirely the `:item_name` by passing an already pluralized string directly to the helper call:
```erb
<%== pagy_info(@pagy, 'Widgets'.pluralize(@pagy.count) %>
<%== pagy_info(@pagy, 'Widgets'.pluralize(@pagy.count)) %>
```

**Notice**: The variables passed to a Pagy object have the precedence over the variables returned by the `pagy_get_vars`. The fastest way to set the `i18n_key` is passing a literal string to the `pagy` method, the most convenient way is using `pagy_get_vars`, the most flexible way is passing a pluralized string to the helper.
Expand Down

0 comments on commit 515de9b

Please sign in to comment.