aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorLauro Caetano <laurocaetano1@gmail.com>2014-01-30 22:58:00 -0200
committerLauro Caetano <laurocaetano1@gmail.com>2014-01-31 00:29:48 -0200
commit4506dd2f07be824fd7e0eb6165c29994aeb1bfcd (patch)
tree3595afcd1b68b2d86891644a298e0a70ccf94077 /activerecord/CHANGELOG.md
parentf64c50a092394917ad9a79abc563aa2bef22ce94 (diff)
downloadrails-4506dd2f07be824fd7e0eb6165c29994aeb1bfcd.tar.gz
rails-4506dd2f07be824fd7e0eb6165c29994aeb1bfcd.tar.bz2
rails-4506dd2f07be824fd7e0eb6165c29994aeb1bfcd.zip
Associations now raise `ArgumentError` on name conflicts.
Dangerous association names conflicts include instance or class methods already defined by `ActiveRecord::Base`.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index a6400a169b..f3322dd7f6 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,19 @@
+* Associations now raise `ArgumentError` on name conflicts.
+
+ Dangerous association names conflicts include instance or class methods already
+ defined by `ActiveRecord::Base`.
+
+ Example:
+
+ class Car < ActiveRecord::Base
+ has_many :errors
+ end
+ # Will raise ArgumentError.
+
+ Fixes #13217.
+
+ *Lauro Caetano*
+
* Fix regressions on `select_*` methods.
When `select_*` methods receive a `Relation` object, they should be able to get the arel/binds from it.
Also fix regressions on select_rows that was ignoring the binds.