From 3760cff0676e05404175074bcee89bd8d3a3ed82 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Wed, 18 Dec 2019 17:12:52 +0900 Subject: [PATCH] Remove reading spaces in the code block [ci skip] Seems that is the reason not to work code highlight. --- guides/source/upgrading_ruby_on_rails.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index 56065e9b29..39b0eb8a4f 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -850,19 +850,19 @@ override it on a per model basis. This should help you migrate all your models t associations required by default. ```ruby - class Book < ApplicationRecord - # model is not yet ready to have its association required by default + class Book < ApplicationRecord + # model is not yet ready to have its association required by default - self.belongs_to_required_by_default = false - belongs_to(:author) - end + self.belongs_to_required_by_default = false + belongs_to(:author) + end - class Car < ApplicationRecord - # model is ready to have its association required by default + class Car < ApplicationRecord + # model is ready to have its association required by default - self.belongs_to_required_by_default = true - belongs_to(:pilot) - end + self.belongs_to_required_by_default = true + belongs_to(:pilot) + end ``` #### Per-form CSRF Tokens