Save 36% for Black Friday! Learn more

All Lessons / How to Upgrade Old Projects: ActsAsTenant

Want more GoRails?

GoRails is packed full with over 350 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

#371 ยท November 17, 2020

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.

Resources

Discussion

Loading...
logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.