mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Removed unnecessary transaction block from contact
This commit is contained in:
parent
bc49350a4d
commit
31e92df6f6
1 changed files with 5 additions and 7 deletions
|
@ -20,14 +20,12 @@ module Epp::ContactsHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def delete_contact
|
def delete_contact
|
||||||
Contact.transaction do
|
@contact = find_contact
|
||||||
@contact = find_contact
|
handle_errors(@contact) and return unless owner?
|
||||||
handle_errors(@contact) and return unless owner?
|
handle_errors(@contact) and return unless @contact
|
||||||
handle_errors(@contact) and return unless @contact
|
handle_errors(@contact) and return unless @contact.destroy_and_clean
|
||||||
handle_errors(@contact) and return unless @contact.destroy_and_clean
|
|
||||||
|
|
||||||
render '/epp/contacts/delete'
|
render '/epp/contacts/delete'
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_contact
|
def check_contact
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue