mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
Fix rubocop issues and a stray typo spotted along the way
This commit is contained in:
parent
647cb53404
commit
9d7dc59652
4 changed files with 16 additions and 21 deletions
|
@ -1,14 +1,15 @@
|
|||
module Admin
|
||||
module Domains
|
||||
class RegistryLockController < BaseController
|
||||
|
||||
def destroy
|
||||
set_domain
|
||||
authorize! :manage, @domain
|
||||
if @domain.remove_registry_lock
|
||||
redirect_to edit_admin_domain_url(@domain), notice: t('admin.domains.registry_lock_delete.success')
|
||||
redirect_to edit_admin_domain_url(@domain),
|
||||
notice: t('admin.domains.registry_lock_delete.success')
|
||||
else
|
||||
redirect_to edit_admin_domain_url(@domain), alert: t('admin.domains.registry_lock_delete.error')
|
||||
redirect_to edit_admin_domain_url(@domain),
|
||||
alert: t('admin.domains.registry_lock_delete.error')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue