Refactoring series: acts_as_list part 3
In this refactoring adventure I’m going to focus on just one 11-line method, and surprisingly, there’s a lot of things that can be improved in just one method. Watch as I choose better names, strip unnecessary variables, work with some ActiveRecord internals and make code intent clearer. https://rubyclarity.com/2017/06/acts_as_list-refactoring-part-3/
Post a comment