Want more GoRails?

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

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

ActiveSupport Concerns: Making A Duration Calculation Module

January 30, 2023

Track your progress

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

Log In

Your Teacher

Collin Jilbert

Ruby on Rails Developer | Lover of Music | Skateboarder | Proud Papa | Co-editor @therubyradar | Launched @fleur_de_ruby

About This Episode

This episode is part 2 in a series about leveraging ActiveSupport::Duration. In this episode, we will look at how to build a reusable concern to setup relationships between models that allow them to automatically handle calculating and updating durations

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

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

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