Skip to content

Commit 7ec7fe5

Browse files
committed
Remove unused 'search_index' method in Edition::TopicalEvents
This looks like it would only be used by content types that update Search API directly. But all classes that include Edition::TopicalEvents inherit from Edition, which updates Search API the idiomatic way via Publishing API, so I don't think this method is doing anything.
1 parent c0cce78 commit 7ec7fe5

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

app/models/concerns/edition/topical_events.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,4 @@ def process_associations_before_save(edition)
2323
def can_be_associated_with_topical_events?
2424
true
2525
end
26-
27-
def search_index
28-
super.merge("topical_events" => topical_events.pluck(:slug))
29-
end
3026
end

0 commit comments

Comments
 (0)