acts_as_tenant icon indicating copy to clipboard operation
acts_as_tenant copied to clipboard

readme: used to_prepare instead of to_complete for tenant reset on console reload

Open pragun16 opened this issue 1 year ago • 0 comments

Issue Description: The QoL tip in the configuration option specifies the use of to_complete reloader callback to set ActsAsTenant.current_tenant which works fine during the console startup but does not reset the tenant on console reload.

Also referenced in this issue.

Proposed fix: to_complete does not seem to work well in a console environment and thus, replacing it with to_prepare resets the tenant correctly, although the callback runs twice on console reload!

pragun16 avatar Dec 31 '24 09:12 pragun16