Skip to content

Add option to define the aggregation collection name? #24

Description

@Songness

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions