rails-37-style-backend-multi-tenancy

Community

Securely manage multi-tenant Rails apps.

AuthorChwistophe
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the complexities of building and maintaining multi-tenant Ruby on Rails applications, ensuring data isolation and efficient resource management across different tenants.

Core Features & Use Cases

  • Path-Based Tenancy: Implements middleware to extract tenant information from URL paths, simplifying local development and avoiding DNS/SSL complexities.
  • Context Preservation: Utilizes ActiveSupport::CurrentAttributes to manage tenant context across requests and background jobs.
  • Background Job Integration: Ensures tenant context is automatically preserved and restored in ActiveJob.
  • Session Scoping: Manages session cookies with path scoping to allow simultaneous logins to multiple tenants.
  • Test Utilities: Provides setup for testing path-based tenancy and middleware in isolation.

Quick Start

Implement path-based tenancy by inserting the AccountSlug::Extractor middleware into your Rails application's Rack stack.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rails-37-style-backend-multi-tenancy
Download link: https://github.com/Chwistophe/agent-skills-unofficial-37-signals-rails-way-fizzy/archive/main.zip#rails-37-style-backend-multi-tenancy

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.