From 667ce870787578c8028d2f74dcf4320258f0ce7e Mon Sep 17 00:00:00 2001 From: Stas Date: Wed, 23 Mar 2016 18:17:05 +0200 Subject: [PATCH] 111864739-revert_scope --- app/models/epp/contact.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/models/epp/contact.rb b/app/models/epp/contact.rb index c0952aadd..52e32da11 100644 --- a/app/models/epp/contact.rb +++ b/app/models/epp/contact.rb @@ -101,15 +101,6 @@ class Epp::Contact < Contact res end - def attach_legal_document(legal_document_data) - return unless legal_document_data - - legal_documents.create( - document_type: legal_document_data[:type], - body: legal_document_data[:body] - ) - end - end delegate :ident_attr_valid?, to: :class @@ -227,6 +218,15 @@ class Epp::Contact < Contact status_list end + def attach_legal_document(legal_document_data) + return unless legal_document_data + + legal_documents.create( + document_type: legal_document_data[:type], + body: legal_document_data[:body] + ) + end + def add_legal_file_to_new frame legal_document_data = Epp::Domain.parse_legal_document_from_frame(frame) return unless legal_document_data