From 8503c48944e738b278573b38b2a6dac13e56aac1 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 26 Mar 2026 07:21:05 -0400 Subject: [PATCH] show all vehicles if search is blank --- app/models/vehicle.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/models/vehicle.rb b/app/models/vehicle.rb index 8daa4ef..cd68d17 100644 --- a/app/models/vehicle.rb +++ b/app/models/vehicle.rb @@ -47,7 +47,6 @@ class Vehicle < ApplicationRecord end def self.search(query) - return none if query.blank? q = "%#{sanitize_sql_like(query)}%" where( "vin LIKE :q OR make LIKE :q OR model LIKE :q OR year LIKE :q", q: q) end