app/helpers/simple_search_for_helper.rb
Method simple_search_for
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def simple_search_for(search, index_path, save_search: true, graph_panel: :never, &block)
if save_search
if search.saved_search&.persisted?
save_path = saved_search_path(search.saved_search)
save_method = :patch