Fix notification message when admin label was modified

This commit is contained in:
Robert Schilling 2017-09-18 11:09:00 +02:00
parent d97b3fa478
commit 9254343117

View file

@ -29,7 +29,7 @@ class Admin::LabelsController < Admin::ApplicationController
@label = Labels::UpdateService.new(label_params).execute(@label) @label = Labels::UpdateService.new(label_params).execute(@label)
if @label.valid? if @label.valid?
redirect_to admin_labels_path, notice: 'label was successfully updated.' redirect_to admin_labels_path, notice: 'Label was successfully updated.'
else else
render :edit render :edit
end end