ActiveSupport Concerns: Making A Duration Calculation Module
#479 · Pro
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
Contributing to Open Source: Adding subdomains to the Addressable gem
#523 · Pro
The addressable gem adds some nice features over Ruby's built-in URI class, but it doesn't have any helpers for extracting subdomains. In this lesson, we'll add some methods to Addressable to make accessing subdomains easier.