Work around counter cache bug when not selecting the cached column

This commit is contained in:
Dominik Sander 2016-09-26 21:46:33 +02:00
parent 5cfca6bf68
commit bade1a1a32

View file

@ -88,6 +88,6 @@ class User < ActiveRecord::Base
end
def undefined_agents
agents.where(type: undefined_agent_types).select('id, schedule, type as undefined')
agents.where(type: undefined_agent_types).select('id, schedule, events_count, type as undefined')
end
end