Fixed contact legal document parsing

This commit is contained in:
Priit Tark 2015-02-18 16:21:34 +02:00
parent a8e43dd6cc
commit e52a79a813

View file

@ -53,8 +53,8 @@ class Epp::Contact < Contact
def legal_document_attrs(legal_frame) def legal_document_attrs(legal_frame)
attrs = {}.with_indifferent_access attrs = {}.with_indifferent_access
attrs[0] = {}.with_indifferent_access attrs[0] = {}.with_indifferent_access
attrs[0][:body] = legal_frame.text
attrs[0][:document_type] = legal_frame['type'] attrs[0][:document_type] = legal_frame['type']
attrs[0][:body] = legal_frame
attrs attrs
end end
end end