# File lib/active_model/errors.rb, line 286 def full_message(attribute, message) return message if attribute == :base attr_name = attribute.to_s.gsub('.', '_').humanize attr_name = @base.class.human_attribute_name(attribute, :default => attr_name) I18n.t("errors.format""errors.format", { :default => "%{attribute} %{message}", :attribute => attr_name, :message => message }) end