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:
parent
9bed2269c9
commit
badcaf6763
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue