aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-05-29 00:19:39 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-05-29 00:19:39 -0300
commit8795ac52978464805f4759f2769bafca1c02c9ff (patch)
treeee80a7dbabbf36fdabb3db0b0bd274092ad4b75e /guides/source
parent18af5dab071bf21950ffe69b72b5fdecd6cf8165 (diff)
downloadrails-8795ac52978464805f4759f2769bafca1c02c9ff.tar.gz
rails-8795ac52978464805f4759f2769bafca1c02c9ff.tar.bz2
rails-8795ac52978464805f4759f2769bafca1c02c9ff.zip
Add note about CollectionAssociation#delete change to upgrading guide [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/upgrading_ruby_on_rails.textile4
1 files changed, 4 insertions, 0 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.textile b/guides/source/upgrading_ruby_on_rails.textile
index dcfd252def..63011d263d 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 <tt>IdentityMap</tt> from <tt>ActiveRecord</tt>, 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: <tt>config.active_record.identity_map</tt>.
+h4(#active_record4_0). ActiveRecord
+
+The <tt>delete</tt> method in collection associations can now receive <tt>Fixnum</tt> or <tt>String</tt> arguments as record ids, besides <tt>ActiveRecord</tt> objects, pretty much like the <tt>destroy</tt> method does. Previously it raised <tt>ActiveRecord::AssociationTypeMismatch</tt> for such arguments, from Rails 4.0 on it'll automatically try to find the records matching the given record ids before deleting them.
+
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 <tt>:#{attribute}_confirmation</tt> instead of <tt>attribute</tt>.