Lose the hash rocket, use symbols

This commit is contained in:
2026-01-29 22:52:17 -05:00
parent fa72b1c837
commit e0a23bac20
13 changed files with 27 additions and 27 deletions

View File

@@ -23,7 +23,7 @@ class VehiclesController < ApplicationController
def index
if params[:customer_id]
begin
@vehicles = Customer.find_by_id(params[:customer_id]).vehicles.paginate(:page => params[:page])
@vehicles = Customer.find_by_id(params[:customer_id]).vehicles.paginate(page: params[:page])
rescue ActiveRecord::RecordNotFound
render_404
end
@@ -31,7 +31,7 @@ class VehiclesController < ApplicationController
# search for a vehicle by vin
if params[:search]
@vehicles = Vehicle.search(params[:search]).paginate(:page => params[:page])
@vehicles = Vehicle.search(params[:search]).paginate(page: params[:page])
if only_one_non_zero?(@vehicles)
redirect_to @vehicles.first
end