mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 10:49:39 +02:00
Merge branch '104525314-domain-object-states' into staging
This commit is contained in:
commit
d78fa578d1
2 changed files with 1 additions and 5 deletions
|
@ -694,7 +694,7 @@ class Domain < ActiveRecord::Base
|
|||
def admin_status_update(update)
|
||||
# check for deleted status
|
||||
statuses.each do |s|
|
||||
unless update.includes? s
|
||||
unless update.include? s
|
||||
case s
|
||||
when DomainStatus::PENDING_DELETE
|
||||
self.delete_at = nil
|
||||
|
|
|
@ -2,7 +2,3 @@
|
|||
= link_to(t(:accept_delete), admin_domain_pending_delete_path(f.object.id, f.object.id),
|
||||
method: :patch, data: { confirm: t(:are_you_sure) },
|
||||
class: 'btn btn-danger btn-xs')
|
||||
|
||||
= link_to(t(:reject_delete), admin_domain_pending_delete_path(f.object.id, f.object.id),
|
||||
method: :delete, data: { confirm: t(:are_you_sure) },
|
||||
class: 'btn btn-danger btn-xs')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue