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 Oct 5, 2016
1 parent b0d643f commit 76428d4
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 76428d4

Please sign in to comment.