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
My application is using apartment gem and I am using postgresql schema as its tenant.
since the key is model_name:id:attribute I experience conflicts between tenants.
This was a bug I introduced into the original version, since I reused code from Sinatra that improperly removed the fully-qualified class name. Sorry. Unfortunately I don't know how to fix it at this point, as any change to that method would change the keyname, meaning that it would result in innumerable bugs accessing keys that were named using the original methodology.
My application is using apartment gem and I am using postgresql schema as its tenant.
since the key is
model_name:id:attribute
I experience conflicts between tenants.i've been eyeing on
redis-objects/lib/redis/objects.rb
Lines 106 to 112 in 2100417
maybe I can add something like
@redis_prefix = "#{Apartment::Tenant.current}:#{@redis_prefix}" if Object.const_defined?(Apartment::Tenant.to_s)
after
redis-objects/lib/redis/objects.rb
Line 111 in 2100417
The text was updated successfully, but these errors were encountered: