You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @rpbaltazar, I use switch callbacks in my application to change the tenant locales. The locale preferences for the tenant are pulled from a settings table.
The issue I'm having is that on tenant creation the switch callbacks are fired before the schema tables are created. Any ideas on how to handle this?
My switch callback config:
Apartment::Adapters::AbstractAdapter.set_callback:switch,:afterdoifcurrent == default_tenant# reset locales to application defaultelse# set locale from settings tableendend
The text was updated successfully, but these errors were encountered:
Hi @rpbaltazar, I use switch callbacks in my application to change the tenant locales. The locale preferences for the tenant are pulled from a settings table.
The issue I'm having is that on tenant creation the switch callbacks are fired before the schema tables are created. Any ideas on how to handle this?
My switch callback config:
The text was updated successfully, but these errors were encountered: