diff options
author | Konstantinos Rousis <rousisk@gmail.com> | 2015-02-18 09:44:43 +0100 |
---|---|---|
committer | Konstantinos Rousis <rousisk@gmail.com> | 2015-02-18 09:44:43 +0100 |
commit | 6ef2ce0aedd8a61744a8b533e727b78d59184177 (patch) | |
tree | d4428c33bba849769d6e72b78808b3e2ba48705d /guides | |
parent | 07b659ca3f6945b5032690f38fdd0e080b842d37 (diff) | |
download | rails-6ef2ce0aedd8a61744a8b533e727b78d59184177.tar.gz rails-6ef2ce0aedd8a61744a8b533e727b78d59184177.tar.bz2 rails-6ef2ce0aedd8a61744a8b533e727b78d59184177.zip |
Replace deprecated readonly option with scope blocks in docs and guide
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/association_basics.md | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/guides/source/association_basics.md b/guides/source/association_basics.md index 3484627a78..cd715aba1f 100644 --- a/guides/source/association_basics.md +++ b/guides/source/association_basics.md @@ -1986,8 +1986,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, autosave: true, - readonly: true + has_and_belongs_to_many :assemblies, -> { readonly }, + autosave: true end ``` @@ -1999,7 +1999,6 @@ The `has_and_belongs_to_many` association supports these options: * `:foreign_key` * `:join_table` * `:validate` -* `:readonly` ##### `:association_foreign_key` |