def hack_for_has_many_counter_cache?(parent_record, column)
      column.association.counter_cache_hack? && parent_record.association(column.name).send(:has_cached_counter?)
    end
def hack_for_has_many_counter_cache?(parent_record, column)
      column.association.counter_cache_hack? && parent_record.association(column.name).send(:has_cached_counter?)
    end
rails 4 needs this hack for polymorphic has_many
 TODO: remove when hack_for_has_many_counter_cache is not needed