<aside> 📌 Active Record + Associated Objects = 🚀

</aside>

Kasper Timm Hansen (1).png

GEM LINK: https://github.com/kaspth/active_record-associated_object

Why we are showcasing this gem?

Forewords by Roland from rubyconfth.com/


My first Rails contract was at a large corporation. While it was a great learning experience, I was confused by the approach.

The codebase was filled with Dry RB, contracts, service objects, and monads.

Screenshot 2568-09-23 at 10.21.47.png

That was not what I was used to and made Rails feel reduced to routing logic into service objects. It ultimately became the "junk drawer" for business logic.

But there's a better way: models should represent behavior, not just data.

Domain concepts like billing can be modeled to include both data structure AND business logic.

So I now do: