Skip to content

Commit fd86d09

Browse files
committed
remove(skip_flash_messages_in_header): not used anymore
1 parent 4700792 commit fd86d09

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

app/controllers/workflows_controller.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ def index
2424
# GET /workflows/1.json
2525
def show
2626
authorize @workflow
27-
@skip_flash_messages_in_header = true # we will handle flash messages in the 'workflows' layout
2827
respond_to do |format|
2928
format.html { render layout: 'workflows' }
3029
format.json

app/views/layouts/_header.html.erb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,9 @@
9393
</div>
9494
<% end %>
9595

96-
<% if !defined? @skip_flash_messages_in_header or !@skip_flash_messages_in_header %>
97-
<div id="flash-container" class="container-fluid">
98-
<%= flash_messages %>
99-
</div>
100-
<% end %>
96+
<div id="flash-container" class="container-fluid">
97+
<%= flash_messages %>
98+
</div>
10199
</header>
102100

103101
<%= render(partial: 'layouts/cookie_banner') if cookie_consent.show_banner? %>

0 commit comments

Comments
 (0)