af83/chouette-core

View on GitHub
app/helpers/simple_search_for_helper.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method simple_search_for has 31 lines of code (exceeds 25 allowed). Consider refactoring.
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
Severity: Minor
Found in app/helpers/simple_search_for_helper.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status