Login
From:
Justin Weiss
(Uncensored)
subscribe
A decorator vs. a subclass
https://www.justinweiss.com/articles/a-decorator-vs-a-subclass/
links
backlinks
Roast topics
Find topics
Find it!
In my most recent article, I mentioned a great new feature in Rails 5.1, delegate_missing_to. With delegate_missing_to, any method that you can’t find on one object is called on another object, instead: