From 24a06675d55eb3ae057184dbbf2ec787b1ff79df Mon Sep 17 00:00:00 2001 From: pragun16 Date: Tue, 31 Dec 2024 15:18:58 +0545 Subject: [PATCH] readme_md: used to_prepare instead of to_complete for resetting current_tenant on console reload. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 52501ae..be6a064 100644 --- a/README.md +++ b/README.md @@ -283,8 +283,8 @@ Rails.application.configure do # set the current_tenant during console startup and after calling reload! # note: reload! calls the to_prepare callback twice ActiveSupport::Reloader.to_prepare do - puts ">>> Setting ActsAsTenant.current_tenant = Company.first" - ActsAsTenant.current_tenant = Company.first + puts ">>> Setting ActsAsTenant.current_tenant = Account.first" + ActsAsTenant.current_tenant = Account.first end end end