Open cblock opened 11 years ago
This should return an array of arrays of the form:
[ ['tag_name_1',12], ['tag name 2', 1], [...] ]
It should work within scoped queries
Foo.all_tags_counts Foo.where(name: 'test').all_tags_counts Foo.all_colors_counts Foo.where(name: 'test').all_colors_counts
...and mabye there's a better name for this method?
...just revised the issue description so that it better conforms to the tag naming convention.
I'll happily accept a pull request for this.
This should return an array of arrays of the form:
[ ['tag_name_1',12], ['tag name 2', 1], [...] ]
It should work within scoped queries
...and mabye there's a better name for this method?