Skip to content

Commit

Permalink
Ruby 3 compability. thoughtbot#2674
Browse files Browse the repository at this point in the history
  • Loading branch information
hpate-bravotran committed Mar 20, 2023
1 parent b324aeb commit 934b447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip/validators/attachment_presence_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Validators
class AttachmentPresenceValidator < ActiveModel::EachValidator
def validate_each(record, attribute, value)
if record.send("#{attribute}_file_name").blank?
record.errors.add(attribute, :blank, options)
record.errors.add(attribute, :blank, **options)
end
end

Expand Down

0 comments on commit 934b447

Please sign in to comment.