Skip to content

Commit

Permalink
Work around counter cache bug when not selecting the cached column
Browse files Browse the repository at this point in the history
  • Loading branch information
dsander committed Sep 30, 2016
1 parent 7c66ca4 commit e8f3d87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ def undefined_agent_types
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

0 comments on commit e8f3d87

Please sign in to comment.