Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove deprecation warning for ActiveRecord::Errors#generate_message.…

… This is the same API that ActiveModel ended up using and that won't be changing.
  • Loading branch information...
commit 1aae5e70efff5c40b4ab6ca177af7894a9e1b5d2 1 parent a2a3413
@bcardarella bcardarella authored tenderlove committed
Showing with 0 additions and 1 deletion.
  1. +0 −1  activerecord/lib/active_record/validations.rb
View
1  activerecord/lib/active_record/validations.rb
@@ -333,7 +333,6 @@ def to_xml(options={})
end
def generate_message(attribute, message = :invalid, options = {})
- ActiveSupport::Deprecation.warn("ActiveRecord::Errors#generate_message has been deprecated. Please use ActiveRecord::Error.new().to_s.")
Error.new(@base, attribute, message, options).to_s
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.