Want more GoRails?

GoRails is packed full with 702 lessons just like this one.

Sign up to get full access or log in to your account and sit back.

How to Upgrade Old Projects: ActsAsTenant

November 17, 2020

Track your progress

Sign in to track your progress and access subscription-only lessons.

Log In

Your Teacher

Hi, I'm Chris. I'm the creator of GoRails, Hatchbox.io and Jumpstart. I spend my time creating tutorials and tools to help Ruby on Rails developers build apps better and faster.

About This Episode

ActsAsTenant needed some maintenance so we're going to walk through the steps of refactoring the gem and Rspec test suite


ActsAsTenant is a popular Rails gem for adding multitenancy to your applications. I've been using it heavily in Jumpstart Pro, but the gem hasn't been actively maintained in about a year.

I've forked the gem and begun the process of updating it to work with Rails 6 and higher. I wanted to show you the process of working through an old project like this and getting it up-to-date. Refactoring tests and library code is all key to modernizing a project like this.


Want to stay up-to-date with Ruby on Rails?

Join 84,256+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.