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

revises a deprecation message

This commit is contained in:
Xavier Noria 2010-08-29 22:47:18 +02:00
parent a70675cd94
commit a302a333f8

View file

@ -283,8 +283,8 @@ module ActiveModel
if options[:default]
ActiveSupport::Deprecation.warn \
"ActiveModel::Errors#generate_message(attributes, custom_message) has been deprecated.\n" +
"Use ActiveModel::Errors#generate_message(attributes, :message => 'your message') instead."
"Giving :default as validation option to errors.add has been deprecated.\n" +
"Please use :message instead."
options[:message] = options.delete(:default)
end