Filter model to subset with the given tags.

Hi,

I need to filter the taggable model with multiple tags and I made the following changes.

It works for us and if it is OK for you will you merge it?