openaustralia/planningalerts

View on GitHub
app/controllers/home_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
# typed: strict
# frozen_string_literal: true

class HomeController < ApplicationController
  extend T::Sig

  sig { void }
  def index
    @trending = T.let(Application.trending, T.untyped)
    return unless params[:q]

    redirect_to address_applications_url(q: params[:q])
  end
end