aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/association_basics.md
diff options
context:
space:
mode:
authorJuanito Fatas <katehuang0320@gmail.com>2015-02-10 22:42:41 +0800
committerJuanito Fatas <katehuang0320@gmail.com>2015-02-10 22:42:41 +0800
commit773dd2598d6158a553a33ab638795c128fc1cc8d (patch)
treed6c174f6259c7f8dc6b0b3904d7417e76b5209d3 /guides/source/association_basics.md
parent124d4d59a09235fa319486caa0c8e12dafe9b92f (diff)
downloadrails-773dd2598d6158a553a33ab638795c128fc1cc8d.tar.gz
rails-773dd2598d6158a553a33ab638795c128fc1cc8d.tar.bz2
rails-773dd2598d6158a553a33ab638795c128fc1cc8d.zip
[ci skip] Add some more code highlights.
Diffstat (limited to 'guides/source/association_basics.md')
-rw-r--r--guides/source/association_basics.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md
index 802cbf3130..8ea2becd47 100644
--- a/guides/source/association_basics.md
+++ b/guides/source/association_basics.md
@@ -691,7 +691,7 @@ c.first_name = 'Manny'
c.first_name == o.customer.first_name # => false
```
-This happens because c and o.customer are two different in-memory representations of the same data, and neither one is automatically refreshed from changes to the other. Active Record provides the `:inverse_of` option so that you can inform it of these relations:
+This happens because `c` and `o.customer` are two different in-memory representations of the same data, and neither one is automatically refreshed from changes to the other. Active Record provides the `:inverse_of` option so that you can inform it of these relations:
```ruby
class Customer < ActiveRecord::Base
@@ -726,10 +726,10 @@ Most associations with standard names will be supported. However, associations
that contain the following options will not have their inverses set
automatically:
-* :conditions
-* :through
-* :polymorphic
-* :foreign_key
+* `:conditions`
+* `:through`
+* `:polymorphic`
+* `:foreign_key`
Detailed Association Reference
------------------------------