Skip to content

Commit 9f3d61b

Browse files
authored
Update attachment_size_validator.rb
1 parent 4652836 commit 9f3d61b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/paperclip/validators/attachment_size_validator.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def validate_each(record, attr_name, value)
2929
error_attrs << attr_name
3030
end
3131

32-
value = record.send(:read_attribute_for_validation, attr_name)
32+
value = record.read_attribute_for_validation(attr_name)
3333

3434
unless value.blank?
3535
options.slice(*AVAILABLE_CHECKS).each do |option, option_value|

0 commit comments

Comments
 (0)