Skip to content

Commit

Permalink
Sort the milage table by effective date in ascending order
Browse files Browse the repository at this point in the history
  • Loading branch information
SajjadAhmad14 committed Sep 26, 2023
1 parent 59b326d commit 3c3a1f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/mileage_rates_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class MileageRatesController < ApplicationController

def index
authorize :application, :see_mileage_rate?
@mileage_rates = MileageRate.where(casa_org: current_organization)
@mileage_rates = MileageRate.where(casa_org: current_organization).order(effective_date: :asc)
end

def new
Expand Down

0 comments on commit 3c3a1f5

Please sign in to comment.