mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Merge branch '113524121-legal_doc_min_size' into staging
This commit is contained in:
commit
7ca5195ca3
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,8 @@ class LegalDocument < ActiveRecord::Base
|
|||
|
||||
belongs_to :documentable, polymorphic: true
|
||||
|
||||
validates :body, length: { minimum: (1.37 * 1.4).ceil }
|
||||
|
||||
validates :body, length: { minimum: (1.37 * 1.4).ceil }, unless: :path
|
||||
|
||||
before_create :add_creator
|
||||
before_save :save_to_filesystem
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue