Fix dooble flash_alerts load

This commit is contained in:
Mojca Lorber 2019-07-12 14:33:41 +02:00
parent f8afc92606
commit d07e04e511

View file

@ -1,7 +1,9 @@
<% content_for :content do %>
<div class="container <%= yield :container_class %>">
<%= render partial: 'shared/flash_alerts',
locals: { flash: flash, notice: notice, alert: alert } %>
<% if user_signed_in? %>
<%= render partial: 'shared/flash_alerts',
locals: { flash: flash, notice: notice, alert: alert } %>
<% end %>
<%= yield %>
</div>
<% end %>