✨ The Normalizer Pattern ✨ Combine: ➡️ The `normalizes` macro ➡️ The Callable pattern ➡️ and the Arguments Forwarding shorthand to encapsulate your normalization logic into POROs and reuse them anywhere in your app! #rubyonrails #RailsWorld
3
13
92
5K
49
Download Image
Join RubyCademy today for lesser-known techniques and solid fundamentals: rubycademy.com
@RubyCademy I'm curious, is there a reason to make the BaseSerializer vs. just making the EmailSerializer with a call class method? Or is it just a preference thing?
@RubyCademy That's a slick pattern! Reminds me of something @TravisNolan82 was working on last month for cleaning up user input. Definitely going to try this approach.