aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-08-01 12:12:54 +0200
committerYves Senn <yves.senn@gmail.com>2015-08-01 12:12:54 +0200
commit54901acbc9f53a3e534edd882b509e0733a93153 (patch)
tree88c253228252cc8f13e9e1eadb8e090cbc120d9d /activerecord/CHANGELOG.md
parentd1cdf52db608ad53b676581f9482e100d4be35bd (diff)
downloadrails-54901acbc9f53a3e534edd882b509e0733a93153.tar.gz
rails-54901acbc9f53a3e534edd882b509e0733a93153.tar.bz2
rails-54901acbc9f53a3e534edd882b509e0733a93153.zip
minor AR changelog edits. [ci skip]
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md17
1 files changed, 8 insertions, 9 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 4cf54ffeb1..42b8515133 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -2,7 +2,7 @@
Fixes #20966.
- *Sean Griffin & presskey*
+ *Sean Griffin*, *presskey*
* Don't raise an error if an association failed to destroy when `destroy` was
called on the parent (as opposed to `destroy!`).
@@ -11,10 +11,11 @@
*Sean Griffin*
-* ActiveRecord::RecordNotFound modified to store model name, primary_key and
+* `ActiveRecord::RecordNotFound` modified to store model name, primary_key and
id of the caller model. It allows the catcher of this exception to make
- a better decision to what to do with it. For example consider this simple
- example:
+ a better decision to what to do with it.
+
+ Example:
class SomeAbstractController < ActionController::Base
rescue_from ActiveRecord::RecordNotFound, with: :redirect_to_404
@@ -64,12 +65,12 @@
*Sean Griffin*
-* Fix a bug where counter_cache doesn't always work with polymorphic
+* Fix a bug where counter_cache doesn't always work with polymorphic
relations.
Fixes #16407.
- *Stefan Kanev & Sean Griffin*
+ *Stefan Kanev*, *Sean Griffin*
* Ensure that cyclic associations with autosave don't cause duplicate errors
to be added to the parent record.
@@ -209,14 +210,12 @@
* Do not set `sql_mode` if `strict: :default` is specified.
- ```
- # database.yml
+ # config/database.yml
production:
adapter: mysql2
database: foo_prod
user: foo
strict: :default
- ```
*Ryuta Kamizono*