# File lib/active_record/validations.rb, line 29 def message # When type is a string, it means that we do not have to do a lookup, because # the user already sent the "final" message. type.is_a?(String) ? type : generate_message(default_options) end