Add methods to ActiveRecord relations and collections.