From c01c08a3f480807d5a79204291cf6dadeab7558d Mon Sep 17 00:00:00 2001 From: Bertocq Date: Wed, 24 Jan 2018 13:09:47 +0100 Subject: [PATCH] Use current_budget directly instead of instance variable --- app/controllers/budgets_controller.rb | 1 - app/views/budgets/_phases.html.erb | 4 ++-- app/views/budgets/index.html.erb | 32 +++++++++++++-------------- 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/app/controllers/budgets_controller.rb b/app/controllers/budgets_controller.rb index 8d69b8c98..298425174 100644 --- a/app/controllers/budgets_controller.rb +++ b/app/controllers/budgets_controller.rb @@ -15,7 +15,6 @@ class BudgetsController < ApplicationController def index @finished_budgets = @budgets.finished.order(created_at: :desc) - @current_budget = current_budget @budgets_coordinates = current_budget_map_locations end diff --git a/app/views/budgets/_phases.html.erb b/app/views/budgets/_phases.html.erb index 928ffb993..2d11ef01f 100644 --- a/app/views/budgets/_phases.html.erb +++ b/app/views/budgets/_phases.html.erb @@ -1,6 +1,6 @@