diff options
Diffstat (limited to 'app/models/pdfresource.rb')
-rw-r--r-- | app/models/pdfresource.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/pdfresource.rb b/app/models/pdfresource.rb index 110a3c7..a5ef56d 100644 --- a/app/models/pdfresource.rb +++ b/app/models/pdfresource.rb @@ -6,7 +6,7 @@ class Pdfresource < ApplicationRecord numericality: { only_integer: true, greater_than_or_equal_to: 1, less_than_or_equal_to: 3, allow_nil: true }, allow_nil: true validate :validate_pdf_count - validates :name, presence: true + validates :name, :thumbnails, presence: true def validate_pdf_count if pdfs.size > 10 |