Ad
  • Custom User Avatar

    This looks really good. It is a better check than just seeing if each set adds up to 45.

    Only thing, I think it is more semantic to use valid.each do ... rather than map since you aren't intending to do anything with the resulting array (that map returns).