From 8c121cab6550a8ddad52cf53ad9f42b388e6bbce Mon Sep 17 00:00:00 2001 From: Ken Johnson Date: Thu, 11 Dec 2025 13:36:11 +0000 Subject: [PATCH] Fix undefined method error for flash.now by using to_hash.empty? --- app/views/benefit_forms/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/benefit_forms/index.html.erb b/app/views/benefit_forms/index.html.erb index 4d42bce..7d5a8d1 100644 --- a/app/views/benefit_forms/index.html.erb +++ b/app/views/benefit_forms/index.html.erb @@ -1,6 +1,6 @@
- <% if flash.any? || flash.now.any? %> + <% if flash.any? || !flash.now.to_hash.empty? %>
<% (flash.to_hash.merge(flash.now.to_hash)).each do |name, msg| %>