lib/penthouse/tenants/octopus_schema_tenant.rb in penthouse-0.7.5 vs lib/penthouse/tenants/octopus_schema_tenant.rb in penthouse-0.8.0

- old
+ new

@@ -18,10 +18,10 @@ # name with the tenant name # @param shard [String, Symbol] The shard to execute within, usually master # @param block [Block] The code to execute within the schema # @yield [SchemaTenant] The current tenant instance # @return [void] - def call(shard: :master, &block) + def call(shard: Octopus.master_shard, &block) Octopus.using(shard) do super(&block) end end