aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2015-02-14 15:35:47 +0000
committerVijay Dev <vijaydev.cse@gmail.com>2015-02-14 15:35:47 +0000
commit95546d493525a79f2da542c7e3fcff6cd5acca73 (patch)
tree90bd2c1e9be0a1f3767da72d60bf3b519333c791 /guides
parent698afe1173c6501d29b98389204d3ac70aaea910 (diff)
parent773dd2598d6158a553a33ab638795c128fc1cc8d (diff)
downloadrails-95546d493525a79f2da542c7e3fcff6cd5acca73.tar.gz
rails-95546d493525a79f2da542c7e3fcff6cd5acca73.tar.bz2
rails-95546d493525a79f2da542c7e3fcff6cd5acca73.zip
Merge branch 'master' of github.com:rails/docrails
Diffstat (limited to 'guides')
-rw-r--r--guides/source/association_basics.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md
index 8633cc4f10..3484627a78 100644
--- a/guides/source/association_basics.md
+++ b/guides/source/association_basics.md
@@ -171,7 +171,7 @@ class CreateCustomers < ActiveRecord::Migration
end
create_table :orders do |t|
- t.belongs_to :customer, index:true
+ t.belongs_to :customer, index: true
t.datetime :order_date
t.timestamps null: false
end
@@ -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
------------------------------