aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2016-02-23 11:01:37 +0900
committeryui-knk <spiketeika@gmail.com>2016-02-23 11:02:06 +0900
commitc5b36a3e430530691bba7e0fd9f775e404f5bb5c (patch)
treeca6ff030853b781affb4b183f660a6cd58dc4fcd
parentc0bbfdb48e897a166c0c59337c6c493a61b3a21f (diff)
downloadrails-c5b36a3e430530691bba7e0fd9f775e404f5bb5c.tar.gz
rails-c5b36a3e430530691bba7e0fd9f775e404f5bb5c.tar.bz2
rails-c5b36a3e430530691bba7e0fd9f775e404f5bb5c.zip
[ci skip] Fix `'id'` to be fixed-width font
As shown below, we should use <tt>...</tt> for string literal ``` $ echo "+'id'+" | rdoc --pipe <p>+&#39;id&#39;+</p> $ echo "<tt>'id'</tt>" | rdoc --pipe <p><code>&#39;id&#39;</code></p> ```
-rw-r--r--activerecord/lib/active_record/nested_attributes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/nested_attributes.rb b/activerecord/lib/active_record/nested_attributes.rb
index 0d5a8e6f25..fa2522c2d2 100644
--- a/activerecord/lib/active_record/nested_attributes.rb
+++ b/activerecord/lib/active_record/nested_attributes.rb
@@ -207,7 +207,7 @@ module ActiveRecord
#
# The keys of the hash which is the value for +:posts_attributes+ are
# ignored in this case.
- # However, it is not allowed to use +'id'+ or +:id+ for one of
+ # However, it is not allowed to use <tt>'id'</tt> or <tt>:id</tt> for one of
# such keys, otherwise the hash will be wrapped in an array and
# interpreted as an attribute hash for a single post.
#