Serializing Attributes with Custom Coders
In part one of this episode on leveraging ActiveSupport::Duration, we look at how to provide a solution to calculating and updating model attributes that represent lengths of time. We look at ActiveSupport::Duration and how we can write a custom coder cla
Concept Application: Assert Difference Deep Dive
In this video, we will explore how the concepts we looked at in "Flattening Scopes in Ruby" are used in Rails by taking a look at the assert_difference method. We will walk through how the method works while taking note of where the concepts are applied.