File tree Expand file tree Collapse file tree
config/initializers/tenanting Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # # TODO:PLANB: we should log account id
2- # ActiveSupport.on_load(:action_controller_base) do
3- # before_action { logger.struct tenant: ApplicationRecord.current_tenant }
4- # end
1+ ActiveSupport . on_load ( :action_controller_base ) do
2+ before_action do
3+ if Current . account . present?
4+ logger . try ( :struct , account : { queenbee_id : Current . account . external_account_id } )
5+ end
6+ end
7+ end
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -48,8 +48,6 @@ class TestCase
4848 include Turbo ::Broadcastable ::TestHelper
4949
5050 setup do
51- # TODO:PLANB: this is hacky, we should sort through the `Current` dependencies and figure out
52- # how to set Current.user without needing both a session *and* an account
5351 Current . account = accounts ( "37s" )
5452 end
5553
You can’t perform that action at this time.
0 commit comments