Commit e0c3c2c18d264cb7562e436f2658c38a224c4162
Exists in
master
and in
21 other branches
Merge pull request #123 from nathanbertram/master
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 | 233 | |
234 | 234 | ```ruby |
235 | 235 | class Product < ActiveRecord::Base |
236 | - scope :search_import, includes(:searches) | |
236 | + scope :search_import, -> { includes(:searches) } | |
237 | 237 | end |
238 | 238 | ``` |
239 | 239 | ... | ... |