Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to define the aggregation collection name? #24

Open
Songness opened this issue Aug 29, 2012 · 0 comments
Open

Add option to define the aggregation collection name? #24

Songness opened this issue Aug 29, 2012 · 0 comments

Comments

@Songness
Copy link

A feature request to add the option to specify the tag aggregation collection name to be used. Having this option will allow the sharing of the tag name in different models, i.e., share the same context. For example,
class Artist
include Mongoid::Document
include Mongoid::TaggableWithContext
include Mongoid::TaggableWithContext::AggregationStrategy::RealTime

alternatively for map-reduce

include Mongoid::TaggableWithContext::AggregationStrategy::MapReduce

taggable :genres, :aggregation_name => 'genre_tags'
..............
end
class Song
include Mongoid::Document
include Mongoid::TaggableWithContext
include Mongoid::TaggableWithContext::AggregationStrategy::RealTime

alternatively for map-reduce

include Mongoid::TaggableWithContext::AggregationStrategy::MapReduce

taggable :genres, :aggregation_name => 'genre_tags'
..............
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant