Move size constant to LegalDocument class

This commit is contained in:
Alex Sherman 2021-03-18 15:22:02 +05:00
parent 9f21b1704c
commit 31a463c587
3 changed files with 4 additions and 7 deletions

View file

@ -1,6 +1,7 @@
class LegalDocument < ApplicationRecord
include EppErrors
MIN_BODY_SIZE = (1.37 * 3.kilobytes).ceil
MAX_BODY_SIZE = 8.megabytes
if ENV['legal_document_types'].present?
TYPES = ENV['legal_document_types'].split(',').map(&:strip)