mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
no need to save to filesystem if no body
This commit is contained in:
parent
5eb456a210
commit
01a352e437
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class LegalDocument < ActiveRecord::Base
|
|||
validate :val_body_length, if: ->(file){ file.path.blank? && !Rails.env.staging?}
|
||||
|
||||
before_create :add_creator
|
||||
before_save :save_to_filesystem
|
||||
before_save :save_to_filesystem, if: :body
|
||||
|
||||
def epp_code_map
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue