Skip to content

Commit

Permalink
readme_md: used to_prepare instead of to_complete for resetting curre…
Browse files Browse the repository at this point in the history
…nt_tenant on console reload.
  • Loading branch information
pragun16 committed Dec 31, 2024
1 parent 6340cb7 commit 24a0667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24a0667

Please sign in to comment.