Skip to content

Commit 934b447

Browse files
Ruby 3 compability. thoughtbot#2674
1 parent b324aeb commit 934b447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/paperclip/validators/attachment_presence_validator.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module Validators
55
class AttachmentPresenceValidator < ActiveModel::EachValidator
66
def validate_each(record, attribute, value)
77
if record.send("#{attribute}_file_name").blank?
8-
record.errors.add(attribute, :blank, options)
8+
record.errors.add(attribute, :blank, **options)
99
end
1010
end
1111

0 commit comments

Comments
 (0)