add fonction empty for cerfa

This commit is contained in:
Tanguy PATTE 2015-08-18 16:30:57 +02:00
parent e2ff64a119
commit 1f960a4b43
3 changed files with 20 additions and 0 deletions

View file

@ -2,4 +2,8 @@ class Cerfa < ActiveRecord::Base
belongs_to :dossier
mount_uploader :content, CerfaUploader
def empty?
content.blank?
end
end