We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b324aeb commit 934b447Copy full SHA for 934b447
lib/paperclip/validators/attachment_presence_validator.rb
@@ -5,7 +5,7 @@ module Validators
5
class AttachmentPresenceValidator < ActiveModel::EachValidator
6
def validate_each(record, attribute, value)
7
if record.send("#{attribute}_file_name").blank?
8
- record.errors.add(attribute, :blank, options)
+ record.errors.add(attribute, :blank, **options)
9
end
10
11
0 commit comments