Permalink
Browse files

Merge pull request #11738 from gaurish/guides-association-basics-fix

[Fixes #11734]Correct Association Basics Guide on has_and_belongs_to_many
  • Loading branch information...
2 parents d3a2ba2 + e54c225 commit e960a646d4424d52cc412d24456745729baf0064 @rafaelfranca rafaelfranca committed Aug 3, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 guides/source/association_basics.md
@@ -1944,8 +1944,8 @@ While Rails uses intelligent defaults that will work well in most situations, th
```ruby
class Parts < ActiveRecord::Base
- has_and_belongs_to_many :assemblies, uniq: true,
- read_only: true
+ has_and_belongs_to_many :assemblies, autosave: true,
+ readonly: true
end
```
@@ -1957,6 +1957,7 @@ The `has_and_belongs_to_many` association supports these options:
* `:foreign_key`
* `:join_table`
* `:validate`
+* `:readonly`
##### `:association_foreign_key`

0 comments on commit e960a64

Please sign in to comment.