aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-11-14 23:24:32 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-11-14 23:45:30 -0200
commit6cad0e317b766b5c4aacb4b94e930376025a49f9 (patch)
tree9677e3a0512d2b3d0485c3fc29ef8b00093d88d9
parent11673a7977f6044a87139ae630c391e58bb5d757 (diff)
downloadrails-6cad0e317b766b5c4aacb4b94e930376025a49f9.tar.gz
rails-6cad0e317b766b5c4aacb4b94e930376025a49f9.tar.bz2
rails-6cad0e317b766b5c4aacb4b94e930376025a49f9.zip
Fix AR Changelog examples and improve syntax highlight [ci skip]
-rw-r--r--activerecord/CHANGELOG.md24
1 files changed, 12 insertions, 12 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 88128c4859..4cb7066c1f 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -2,28 +2,28 @@
Example:
- class User < ActiveRecord::Base
- to_param :name
- end
+ class User < ActiveRecord::Base
+ to_param :name
+ end
- user = User.find_by(name: 'Fancy Pants')
- user.id # => 123
- user.to_param # => "123-fancy-pants"
+ user = User.find_by(name: 'Fancy Pants')
+ user.id # => 123
+ user.to_param # => "123-fancy-pants"
*Javan Makhmali*
* Added `ActiveRecord::Base.no_touching`, which allows ignoring touch on models.
- Examples:
+ Example:
- Post.no_touching do
- Post.first.touch
- end
+ Post.no_touching do
+ Post.first.touch
+ end
*Sam Stephenson*, *Damien Mathieu*
* Prevent the counter cache from being decremented twice when destroying
- a record on a has_many :through association.
+ a record on a `has_many :through` association.
Fixes #11079.
@@ -36,7 +36,7 @@
*Adam Williams*, *Yves Senn*
-* Fix bug where has_one associaton record update result in crash, when replaced with itself.
+* Fix bug where `has_one` associaton record update result in crash, when replaced with itself.
Fixes #12834.