From feb93b4093ab67b30b4d2d66178457f3d6ed3cfb Mon Sep 17 00:00:00 2001 From: Stas Date: Mon, 1 Feb 2016 18:39:06 +0200 Subject: [PATCH] 111864739-method_fix --- app/models/epp/domain.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/models/epp/domain.rb b/app/models/epp/domain.rb index 667b566ca..0e53ba264 100644 --- a/app/models/epp/domain.rb +++ b/app/models/epp/domain.rb @@ -194,10 +194,7 @@ class Epp::Domain < Domain end at[:dnskeys_attributes] = dnskeys_attrs(dnskey_frame, action) - - doc = legal_document_from(frame) - self.legal_document_id = doc.id if doc.id - at[:legal_documents_attributes] = doc + at[:legal_documents_attributes] = legal_document_from(frame) at end # rubocop: enable Metrics/PerceivedComplexity