Commit 8b3e8bfc7c1e1bb731ebb36adab417bcc41a5787
Committed by
Andrew Kane
1 parent
0c85e912
Exists in
master
and in
21 other branches
Update readme to fix Searchjoy relation (#722)
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
README.md
... | ... | @@ -488,7 +488,7 @@ Next, add conversions to the index. |
488 | 488 | |
489 | 489 | ```ruby |
490 | 490 | class Product < ActiveRecord::Base |
491 | - has_many :searches, class_name: "Searchjoy::Search" | |
491 | + has_many :searches, class_name: "Searchjoy::Search", as: :convertable | |
492 | 492 | |
493 | 493 | searchkick conversions: ["conversions"] # name of field |
494 | 494 | ... | ... |