From f444533956c1af557f6ea49e60e2a65ddc32f2ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 1 Oct 2019 18:55:43 +0200 Subject: [PATCH] Remove legacy reference to `flash[:html_safe]` This code doesn't work since commit a5338a44. --- app/controllers/budgets/investments_controller.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/controllers/budgets/investments_controller.rb b/app/controllers/budgets/investments_controller.rb index 6b1c07832..0276d9aa5 100644 --- a/app/controllers/budgets/investments_controller.rb +++ b/app/controllers/budgets/investments_controller.rb @@ -17,7 +17,6 @@ module Budgets load_and_authorize_resource :investment, through: :budget, class: "Budget::Investment", except: :json_data - before_action -> { flash.now[:notice] = flash[:notice].html_safe if flash[:html_safe] && flash[:notice] } before_action :load_ballot, only: [:index, :show] before_action :load_heading, only: [:index, :show] before_action :set_random_seed, only: :index