Fix rubocop issues and a stray typo spotted along the way

This commit is contained in:
Maciej Szlosarczyk 2018-08-10 14:43:06 +03:00
parent 647cb53404
commit 9d7dc59652
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
4 changed files with 16 additions and 21 deletions

View file

@ -47,7 +47,7 @@ module Admin
def destroy
@mail_template = MailTemplate.find(params[:id])
if @mail_template.destroy
redirect_to admin_mail_templates_path, notise: t(:deleted)
redirect_to admin_mail_templates_path, notice: t(:deleted)
else
flash.now[:alert] = I18n.t(:failure)
render 'show'