Writing a Custom Cop for RuboCop
A quick example of a custom cop for RuboCop I wrote recently to enforce usage of a specific intializer for the Ruby Money gem.
All of my blog posts collected in chronological order.
A quick example of a custom cop for RuboCop I wrote recently to enforce usage of a specific intializer for the Ruby Money gem.
A great pattern to prevent ActiveRecord code duplication and clean up cluttered models.
A helpful tip to improve your ActiveRecord queries by using select instead of pluck in certain situations.
A coworker of mine recently introduced me to ActiveRecord’s merge method, which has allowed me to really improve the modularity and clarity of my queries.
After a long process of trying to understand Webpacker’s huge effect on our application’s memory, a few changes unexpectedly solved all of our problems.
I recently learned that you can use CSS paths to parse XML with the Nokogiri Ruby gem, which made my work parsing XML responses from the Amazon Pay API much easier.