You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `Rummage.Ecto` can be configured globally with a `default_per_page` value (which can be overridden for a model).
86
+
- `Rummage.Ecto` can be configured globally with a `per_page` value (which can be overridden for a model).
87
87
If you want to set different `per_page` for different the models, add it to `model.exs` file while using `Rummage.Ecto`
88
88
as shown in the [AdvancedUsageSection](#advanced-usage).
89
89
@@ -99,8 +99,8 @@ Below are the ways `Rummage.Ecto` can be used:
99
99
100
100
```elixir
101
101
config :rummage_ecto, Rummage.Ecto,
102
-
default_repo: MyApp.Repo,
103
-
default_per_page: 10
102
+
repo: MyApp.Repo,
103
+
per_page: 10
104
104
```
105
105
106
106
- And you should be able to use `Rummage.Ecto` with any `Ecto` model.
@@ -112,9 +112,9 @@ Below are the ways `Rummage.Ecto` can be used:
112
112
113
113
```elixir
114
114
config :rummage_ecto, Rummage.Ecto,
115
-
default_repo: MyApp.Repo,
116
-
default_search: MyApp.SearchModule,
117
-
default_paginate: MyApp.PaginateModule
115
+
repo: MyApp.Repo,
116
+
search: MyApp.SearchModule,
117
+
paginate: MyApp.PaginateModule
118
118
```
119
119
120
120
- When using `Rummage.Ecto` with an app that has multiple `Repo`s, or when there's a need to configure `Repo` per model basis, it can be passed along with
0 commit comments