query_packages now assigns @search_sources - a hash mapping package ids to the matching strategy that put them into the results: :exact, :name_prefix, :name_contains, :semantic or :fulltext. The grid and list views render a small badge with a humanized label per result, making the search tiers observable. semantic_results() was folded into search_packages() so each branch tags its own source. Adds the rails-controller-testing gem for assigns() in tests. |
||
|---|---|---|
| .. | ||
| concerns | ||
| users | ||
| admin_controller.rb | ||
| application_controller.rb | ||
| json_controller.rb | ||
| moderate_controller.rb | ||
| my_controller.rb | ||
| packages_controller.rb | ||
| users_controller.rb | ||
| welcome_controller.rb | ||