acts-as-taggable-on icon indicating copy to clipboard operation
acts-as-taggable-on copied to clipboard

Incorrect tag counts for associations

Open andreitr opened this issue 8 years ago • 3 comments

I am getting incorrect tag counts on associations. Here's the query example: User.last.items.tag_counts_on(:tags)

Here's the result: [<ActsAsTaggableOn::Tag id: 120, name: "exampletag", taggings_count: 77>....]

The returned taggings_count is not limited to user's items... There are total of 77 items tagged with the tag but but the user only has 4.

andreitr avatar Dec 09 '16 21:12 andreitr

I stumbled upon this issue as well.

jprinaldi avatar Jan 07 '17 05:01 jprinaldi

Same here.

ferrance avatar Feb 12 '17 16:02 ferrance

Same here

gonzar11 avatar Mar 17 '20 14:03 gonzar11