Removed legaldoc validation for staging and dev environments

This commit is contained in:
Sergei Tsoganov 2022-11-28 12:45:34 +02:00
parent a13f2dce6c
commit b366aa8d1d
2 changed files with 1 additions and 8 deletions

View file

@ -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

View file

@ -10,13 +10,6 @@
</domain:authInfo>
</domain:transfer>
</transfer>
<extension>
<eis:extdata xmlns:eis="eis">
<eis:legalDocument type="pdf">
dGVzdCBmYWlsCg==
</eis:legalDocument>
</eis:extdata>
</extension>
<clTRID>ABC-12345</clTRID>
</command>
</epp>