class ActsAsTaggableOnMongoid::Taggable::TaggedWithQuery::AnyTagsQuery
A class finding all Taggable
objects which include any of the passed in tags.
Public Instance Methods
build()
click to toggle source
# File lib/acts_as_taggable_on_mongoid/taggable/tagged_with_query/any_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/any_tags_query.rb, line 12 def included_ids selector = Mongoid::Criteria::Queryable::Selector.new selector[:count] = { "$gt" => 0 } build_ids_from(selector) end