Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions app/controllers/restrooms_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def update
else
display_errors
render 'edit'
return
end

redirect_to @restroom
Expand Down Expand Up @@ -117,9 +118,7 @@ def list_restrooms

def display_errors
if @restroom.errors.any?
@restroom.errors.each do
flash[:alert] = I18n.t('restroom.flash.field')
end
flash[:alert] = I18n.t('restroom.flash.field')
else
flash[:alert] = I18n.t('restroom.flash.unexpected')
end
Expand Down