1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

AR::Base#read_attribute_for_validation is a public_method

This commit is contained in:
Akira Matsuda 2020-09-16 11:51:07 +09:00
parent 9bed2269c9
commit badcaf6763

View file

@ -58,7 +58,7 @@ module ActiveModel
def self.generate_message(attribute, type, base, options) # :nodoc:
type = options.delete(:message) if options[:message].is_a?(Symbol)
value = (attribute != :base ? base.send(:read_attribute_for_validation, attribute) : nil)
value = (attribute != :base ? base.read_attribute_for_validation(attribute) : nil)
options = {
model: base.model_name.human,