Story#113524121 - min legal document size is 8kB

This commit is contained in:
Vladimir Krylov 2016-03-11 09:56:50 +02:00
parent 7b5c13a97a
commit c292bc5a25
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ class LegalDocument < ActiveRecord::Base
belongs_to :documentable, polymorphic: true
validates :body, length: { minimum: (1.37 * 1.4).ceil }, unless: :path
validates :body, length: { minimum: (1.37 * 8.kilobytes).ceil }, unless: :path
before_create :add_creator
before_save :save_to_filesystem