Want more GoRails?
GoRails is packed full with 725 lessons just like this one.
Sign up to get full access or log in to your account and sit back.
Your Teacher
Chris Oliver
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
Notes
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.