From 6ef2ce0aedd8a61744a8b533e727b78d59184177 Mon Sep 17 00:00:00 2001 From: Konstantinos Rousis Date: Wed, 18 Feb 2015 09:44:43 +0100 Subject: Replace deprecated readonly option with scope blocks in docs and guide --- guides/source/association_basics.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'guides/source') 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` -- cgit v1.2.3