Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
bcardarella authored and tenderlove committed Jun 9, 2011
1 parent a2a3413 commit 1aae5e7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion activerecord/lib/active_record/validations.rb
Expand Up @@ -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
Expand Down

0 comments on commit 1aae5e7

Please sign in to comment.