Commit ba9c2f4391d02b4a2c82bebb363d5dc3a9693697
1 parent
4672ace9
Exists in
master
and in
21 other branches
Removed extra whitespace
Showing
1 changed file
with
0 additions
and
2 deletions
Show diff stats
README.md
... | ... | @@ -472,14 +472,12 @@ Order results differently for each user. For example, show a user’s previousl |
472 | 472 | |
473 | 473 | ```ruby |
474 | 474 | class Product < ActiveRecord::Base |
475 | - | |
476 | 475 | def search_data |
477 | 476 | { |
478 | 477 | name: name, |
479 | 478 | orderer_ids: orders.pluck(:user_id) # boost this product for these users |
480 | 479 | } |
481 | 480 | end |
482 | - | |
483 | 481 | end |
484 | 482 | ``` |
485 | 483 | ... | ... |