Skip to content
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...
1 parent a2a3413 commit 1aae5e70efff5c40b4ab6ca177af7894a9e1b5d2 @bcardarella bcardarella committed with tenderlove
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

0 comments on commit 1aae5e7

Please sign in to comment.
Something went wrong with that request. Please try again.