From 0eaba9fc9e81ac67fdf97c2ca81cabef0f27f55b Mon Sep 17 00:00:00 2001 From: decabeza Date: Mon, 22 Jan 2018 14:46:54 +0100 Subject: [PATCH] changes order for finished budgets on budgets homepage list --- app/controllers/budgets_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/budgets_controller.rb b/app/controllers/budgets_controller.rb index 52b735188..385734121 100644 --- a/app/controllers/budgets_controller.rb +++ b/app/controllers/budgets_controller.rb @@ -14,7 +14,7 @@ class BudgetsController < ApplicationController end def index - @budgets = @budgets.order(:created_at) + @budgets = @budgets.order(created_at: :desc) @budget = current_budget @budgets_coordinates = current_budget_map_locations end