diff options
author | yui-knk <spiketeika@gmail.com> | 2016-02-23 11:01:37 +0900 |
---|---|---|
committer | yui-knk <spiketeika@gmail.com> | 2016-02-23 11:02:06 +0900 |
commit | c5b36a3e430530691bba7e0fd9f775e404f5bb5c (patch) | |
tree | ca6ff030853b781affb4b183f660a6cd58dc4fcd /activerecord/lib | |
parent | c0bbfdb48e897a166c0c59337c6c493a61b3a21f (diff) | |
download | rails-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>+'id'+</p>
$ echo "<tt>'id'</tt>" | rdoc --pipe
<p><code>'id'</code></p>
```
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/nested_attributes.rb | 2 |
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. # |