class ActsAsTaggableOnMongoid::Taggable::TaggedWithQuery::ExcludeTagsQuery
A class finding all Taggable
objects which exclude all of the passed in tags.
Public Instance Methods
build()
click to toggle source
# File lib/acts_as_taggable_on_mongoid/taggable/tagged_with_query/exclude_tags_query.rb, line 8 def build { :id.in => included_ids } end
included_ids()
click to toggle source
# File lib/acts_as_taggable_on_mongoid/taggable/tagged_with_query/exclude_tags_query.rb, line 12 def included_ids selector = Mongoid::Criteria::Queryable::Selector.new selector[:count] = { "$gt" => 0 } ids = build_ids_from(selector) build_tagless_ids_from(selector) - ids end