Skip to content

Commit

Permalink
WIP add search index method to landing page
Browse files Browse the repository at this point in the history
This is needed because the Attachable module assumes that the class its
attached to has a search_index method, which landing page doesn't. This
usually comes from the Searchable module, but we don't need any of that
behaviour.

Actually we don't need Attachable either, I don't think - I think it's a
hangover from when we were attaching CSVs to use for line graphs. But
we're not doing line graphs now. We could remove it, but I'm slightly
nervous about breaking something.
  • Loading branch information
richardTowers committed Feb 5, 2025
1 parent df6ae0b commit 31fdef5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/landing_page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ def landing_page_body
end
end

def search_index
{}
end

private

def base_path_must_not_be_taken
Expand Down

0 comments on commit 31fdef5

Please sign in to comment.