sortable arrays of symbols in Ruby
I got this error in my Rails app because I was trying to sort an array of symbols: undefined method `’ for :my_symbol:Symbol. I defined the spaceship method for the Symbol class and included the Comparable module in order to … Continue reading