Story#113524121 - save_to_filesystem, if body is present

This commit is contained in:
Vladimir Krylov 2016-03-04 14:46:16 +02:00
parent 34dd6af4f7
commit 9e20fdc424

View file

@ -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