Merge branch 'reduce_legaldoc_min_size' into staging

Lowered the legaldoc min size to 3kB
This commit is contained in:
Timo Võhmar 2016-04-07 11:41:00 +03:00
commit 3af5a1d5fc
3 changed files with 4 additions and 5 deletions

View file

@ -1,6 +1,6 @@
class LegalDocument < ActiveRecord::Base
include EppErrors
MIN_BODY_SIZE = (1.37 * 8.kilobytes).ceil
MIN_BODY_SIZE = (1.37 * 3.kilobytes).ceil
if ENV['legal_document_types'].present?
TYPES = ENV['legal_document_types'].split(',').map(&:strip)
@ -31,7 +31,6 @@ class LegalDocument < ActiveRecord::Base
end
def save_to_filesystem
loop do
rand = SecureRandom.random_number.to_s.last(4)