diff --git a/app/models/legal_document.rb b/app/models/legal_document.rb index cafd04af7..cd4ad0b1f 100644 --- a/app/models/legal_document.rb +++ b/app/models/legal_document.rb @@ -14,7 +14,7 @@ class LegalDocument < ApplicationRecord belongs_to :documentable, polymorphic: true - validate :val_body_length, if: ->(file) { file.path.blank? } + validate :val_body_length, if: ->(file) { file.path.blank? && Rails.env.production? } before_create :add_creator before_save :save_to_filesystem, if: :body diff --git a/app/views/epp/sample_requests/domain/transfer.xml b/app/views/epp/sample_requests/domain/transfer.xml index f6ee87b79..6ab951eeb 100644 --- a/app/views/epp/sample_requests/domain/transfer.xml +++ b/app/views/epp/sample_requests/domain/transfer.xml @@ -10,13 +10,6 @@ - - - - dGVzdCBmYWlsCg== - - - ABC-12345