Validate legal doc type

This commit is contained in:
Martin Lensment 2015-01-28 13:38:49 +02:00
parent 00091c5502
commit 16df29ffc2
3 changed files with 38 additions and 1 deletions

View file

@ -1,3 +1,5 @@
class LegalDocument < ActiveRecord::Base
belongs_to :documentable, polymorphic: true
TYPES = %w(pdf bdoc ddoc zip rar gz tar 7z)
end