Commit 3cc5f6617eb4b8078ad6fc19050d723c4461eb69
1 parent
471ec8aa
Exists in
master
and in
21 other branches
Updated scope syntax
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
README.md
@@ -233,7 +233,7 @@ Searchkick uses `find_in_batches` to import documents. To eager load associatio | @@ -233,7 +233,7 @@ Searchkick uses `find_in_batches` to import documents. To eager load associatio | ||
233 | 233 | ||
234 | ```ruby | 234 | ```ruby |
235 | class Product < ActiveRecord::Base | 235 | class Product < ActiveRecord::Base |
236 | - scope :search_import, includes(:searches) | 236 | + scope :search_import, -> { includes(:searches) } |
237 | end | 237 | end |
238 | ``` | 238 | ``` |
239 | 239 |