lgs / mongoid_taggable_with_context

A tagging plugin for Mongoid that allows for custom tagging along dynamic contexts with real-time aggregation (pre-aggregated).
http://rubygems.org/gems/mongoid_taggable_with_context
MIT License
19 stars 20 forks source link

group_by feature #1

Closed s12chung closed 11 years ago

s12chung commented 12 years ago

Hi,

I added a group_by feature, where you can group by tags by a key (such as a User for my uses). The implementation minimizes changing your code. It also doesn't require you to migrate data if you don't "switch" to using the feature.

Thought it'd might be good to merge code. I can write a migration rake task if needed.

Thoughts?

Steve

lgs commented 11 years ago

Hi s12chung, sorry to be so late, I just merged your old pull request due to the evolution of mongoid_taggable_with_context development ( see the thread: https://github.com/lgs/mongoid_taggable_with_context/pull/2 ).

Please keep going the the good Job with a migration rake task as you suggested ... or with any other enhancement or ideas you'll be fine to propose.

Thanks for your job luca