Removed unnecessary transaction block from contact

This commit is contained in:
Andres Keskküla 2014-09-25 16:09:25 +03:00
parent bc49350a4d
commit 31e92df6f6

View file

@ -20,7 +20,6 @@ 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
@ -28,7 +27,6 @@ module Epp::ContactsHelper
render '/epp/contacts/delete' render '/epp/contacts/delete'
end end
end
def check_contact def check_contact
ph = params_hash['epp']['command']['check']['check'] ph = params_hash['epp']['command']['check']['check']