From 31e92df6f61fd6235dc99a39f74569e9215531ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andres=20Keskk=C3=BCla?= Date: Thu, 25 Sep 2014 16:09:25 +0300 Subject: [PATCH] Removed unnecessary transaction block from contact --- app/helpers/epp/contacts_helper.rb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/helpers/epp/contacts_helper.rb b/app/helpers/epp/contacts_helper.rb index b80121fec..2605eb77f 100644 --- a/app/helpers/epp/contacts_helper.rb +++ b/app/helpers/epp/contacts_helper.rb @@ -20,14 +20,12 @@ module Epp::ContactsHelper end def delete_contact - Contact.transaction do - @contact = find_contact - handle_errors(@contact) and return unless owner? - handle_errors(@contact) and return unless @contact - handle_errors(@contact) and return unless @contact.destroy_and_clean + @contact = find_contact + handle_errors(@contact) and return unless owner? + handle_errors(@contact) and return unless @contact + handle_errors(@contact) and return unless @contact.destroy_and_clean - render '/epp/contacts/delete' - end + render '/epp/contacts/delete' end def check_contact