# File lib/aws/record/validators/numericality.rb, line 56 def read_attribute_for_validation(record, attribute_name) if record.respond_to?("#{attribute_name}_before_type_cast") record.send("#{attribute_name}_before_type_cast") else record.send(attribute_name) end end