aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2015-04-20 16:47:12 +0100
committerAndrew White <andyw@pixeltrix.co.uk>2015-04-21 08:48:22 -0400
commitac2b7a5c4d46b74c12ca8a67e73b803e7726e115 (patch)
tree4d1328df8f682102510b6718fe7c9743fe5a1699 /activerecord/CHANGELOG.md
parentb12abe673306f2b5298b7a296c74ddc9061d2fec (diff)
downloadrails-ac2b7a5c4d46b74c12ca8a67e73b803e7726e115.tar.gz
rails-ac2b7a5c4d46b74c12ca8a67e73b803e7726e115.tar.bz2
rails-ac2b7a5c4d46b74c12ca8a67e73b803e7726e115.zip
Rename association option :class to :anonymous_class
In 1f006c an option was added called :class to allow passing anonymous classes to association definitions. Since using :class instead of :class_name is a fairly common typo even amongst experienced developers this can result in hard to debug errors arising in raise_on_type_mismatch? To fix this we're renaming the option from :class to :anonymous_class as that is a more correct description of what the option is for. Since this was an internal, undocumented option there is no need for a deprecation. Fixes #19659
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 58ebd5d9ed..3d7e175e2e 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,9 @@
+* Rename `:class` to `:anonymous_class` in association options.
+
+ Fixes #19659.
+
+ *Andrew White*
+
* Autosave existing records on a has many through association when the parent
is new.