mbleigh / acts-as-taggable-on

A tagging plugin for Rails applications that allows for custom tagging along dynamic contexts.
http://mbleigh.lighthouseapp.com/projects/10116-acts-as-taggable-on
MIT License
4.96k stars 1.2k forks source link

Posible duplicate records in finders #993

Open brusacco opened 4 years ago

brusacco commented 4 years ago

Hello, I have a model Entries, that have two "taggings", tags and tags_title.

When I use the tagged_with("word") method, and if the Entry has both tags and tags_title with that tagged "word", it returns 2 ENTRIES ... the same one, but duplicated.

I solve this using the tagged_with("words", :on => :tags) ... but it's strongly advised to put a warning in the docs about this. I have been using "tags" for a while, and then we added the "tags_title" recently.

Is this normal?