From 14cd5aa8da122a132f94c73ae97b7a03c0ddec2b Mon Sep 17 00:00:00 2001 From: Brian Cardarella Date: Mon, 30 Apr 2012 03:58:39 -0400 Subject: [PATCH] Rails 4.0 upgrade note for the ConfirmationValidator change --- guides/source/upgrading_ruby_on_rails.textile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/guides/source/upgrading_ruby_on_rails.textile b/guides/source/upgrading_ruby_on_rails.textile index e63548abc9f99..2b2e65c813da6 100644 --- a/guides/source/upgrading_ruby_on_rails.textile +++ b/guides/source/upgrading_ruby_on_rails.textile @@ -38,6 +38,10 @@ h4(#identity_map4_0). IdentityMap Rails 4.0 has removed IdentityMap from ActiveRecord, due to "some inconsistencies with associations":https://github.com/rails/rails/commit/302c912bf6bcd0fa200d964ec2dc4a44abe328a6. If you have manually enabled it in your application, you will have to remove the following config that has no effect anymore: config.active_record.identity_map. +h4(#active_model4_0). ActiveModel + +Rails 4.0 has changed how errors attach with the ConfirmationValidator. Now when confirmation validations fail the error will be attached to :#{attribute}_confirmation instead of attribute. + h3. Upgrading from Rails 3.1 to Rails 3.2 If your application is currently on any version of Rails older than 3.1.x, you should upgrade to Rails 3.1 before attempting an update to Rails 3.2.