Story #104525314 - allow admin to remove pendingDelete and clear delete_at

This commit is contained in:
Matt Farnsworth 2015-11-19 10:19:29 +02:00
parent b1c8eb5f31
commit a53451c2ef
3 changed files with 25 additions and 9 deletions

View file

@ -47,6 +47,7 @@ class Admin::DomainsController < AdminController
def update
dp = ignore_empty_statuses
@domain.is_admin = true
@domain.admin_status_update dp[:statuses]
if @domain.update(dp)
flash[:notice] = I18n.t('domain_updated')