lib/strongbolt/user_abilities.rb
def add_tenant tenant
        sing_tenant_name = tenant.class.name.demodulize.underscore
        send("users_#{sing_tenant_name.pluralize}").create! sing_tenant_name => tenant
        # users_tenants.create! tenant: tenant
      end
#
# Adds a managed tenant to the user
#
Adds a managed tenant to the user
Adds a managed tenant to the user
def add_tenant tenant
        sing_tenant_name = tenant.class.name.demodulize.underscore
        send("users_#{sing_tenant_name.pluralize}").create! sing_tenant_name => tenant
      end
def add_tenant tenant sing_tenant_name = tenant . class . name . demodulize . underscore send ( "users_#{sing_tenant_name.pluralize}" ) . create! sing_tenant_name => tenant end
Adds a managed tenant to the user
Adds a managed tenant to the user
# users_tenants.create! tenant: tenant
tenant