Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Closes #2673. Fixes incompatibility with ruby 3.0, see https://www.ru…
Browse files Browse the repository at this point in the history
  • Loading branch information
vtamara committed Feb 25, 2021
1 parent e3f7493 commit 32bf002
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 32bf002

Please sign in to comment.