mirror of
https://github.com/internetee/registry.git
synced 2025-07-19 17:25:57 +02:00
Story#113524121 - save_to_filesystem, if body is present
This commit is contained in:
parent
34dd6af4f7
commit
9e20fdc424
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ class LegalDocument < ActiveRecord::Base
|
|||
belongs_to :documentable, polymorphic: true
|
||||
|
||||
before_create :add_creator
|
||||
before_save :save_to_filesystem
|
||||
before_save :save_to_filesystem, if: :body
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue