demarches-normaliennes/app/models/cerfa.rb

10 lines
203 B
Ruby
Raw Normal View History

2015-08-18 13:52:00 +02:00
class Cerfa < ActiveRecord::Base
belongs_to :dossier
mount_uploader :content, CerfaUploader
2016-02-19 14:12:06 +01:00
validates :content, :file_size => { :maximum => 3.megabytes }
2015-08-18 16:30:57 +02:00
def empty?
content.blank?
end
2015-08-18 13:52:00 +02:00
end