acts_as_tenant icon indicating copy to clipboard operation
acts_as_tenant copied to clipboard

Easy multi-tenancy for Rails in a shared database setup.

Results 44 acts_as_tenant issues
Sort by recently updated
recently updated
newest added

I have ActsAsTenant version 1.0.1 running in my Rails 7.0 application. I just wanted to switch from Sidekiq to GoodJob. For this, I also changed all my jobs from Sidekiq...

We recently encountered some difficulty trying to update to v1. The cause is an undesirable interaction between `ActsAsTenant::Sidekiq::Server` and the new `ActsAsTenant::ActiveJobExtensions` (introduced in #319) - due to their different...

Firstly - thanks for a gem of a gem :) I have `config.require_tenant = true` My test model has an active storage attachment: ``` class Test < ApplicationRecord acts_as_tenant :account...

I am not a master of Ruby or Rails. Hope this is good enough. Seems to fail before my commit and not after, so 🤞 Comments & suggestions for improvement...

the implication of the lambda example is that it defaults to returning true in the non-admin case. Currently, the code doesn't actually do that...

I'm not sure whether this is a target behavior but when saving new object, the tenant ID is simply overriden with the current tenant although I'd expect it to fail:...

This allows for the user, when setting up `acts_as_tenant` for a model, to specify an option for a method that the tenant responds to that will give additional pkeys for...

This is how I configure the tenant for request specs on `rails_helper.rb`: ```ruby config.before(:each, type: :request) do |spec| unless spec.metadata[:without_agency] agency = create(:agency, name: 'Default Agency') ActsAsTenant.test_tenant = agency host!...

I want to conditionally set `require_tenant` based on a user attribute. i.e all non-admins need to have a Tenant explicitly set. ```ruby ActsAsTenant.configure do |config| config.require_tenant = lambda do Current.user...

I am using ActsAsTenant. Recently, I wanted to change require_tenant dynamically because I plan to create an admin page. So I looked at the README and rewrote acts_as_tenant.rb using lambda....