aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-01-16 21:28:47 +0000
committerAaron Patterson <aaron.patterson@gmail.com>2011-01-16 13:43:54 -0800
commitd1521719c5ac61a0c0e59827fe8cb197f5fe56f5 (patch)
tree6a64320e36d329a5addeeb0f5dda86466eae072e /activerecord/lib/active_record/associations.rb
parentc4458b36024a20abacc39c069444bb0ac202778a (diff)
downloadrails-d1521719c5ac61a0c0e59827fe8cb197f5fe56f5.tar.gz
rails-d1521719c5ac61a0c0e59827fe8cb197f5fe56f5.tar.bz2
rails-d1521719c5ac61a0c0e59827fe8cb197f5fe56f5.zip
Removed support for accessing attributes on a has_and_belongs_to_many join table. This has been documented as deprecated behaviour since April 2006. Please use has_many :through instead. A deprecation warning will be added to the 3-0-stable branch for the 3.0.4 release.
Diffstat (limited to 'activerecord/lib/active_record/associations.rb')
-rw-r--r--activerecord/lib/active_record/associations.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index e539e4968b..891ac52f8a 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -1301,12 +1301,6 @@ module ActiveRecord
# end
# end
#
- # Deprecated: Any additional fields added to the join table will be placed as attributes when
- # pulling records out through +has_and_belongs_to_many+ associations. Records returned from join
- # tables with additional attributes will be marked as readonly (because we can't save changes
- # to the additional attributes). It's strongly recommended that you upgrade any
- # associations with attributes to a real join model (see introduction).
- #
# Adds the following methods for retrieval and query:
#
# [collection(force_reload = false)]