Class: ActsAsTaggableOn::Taggable::TaggedWithQuery::ExcludeTagsQuery

Inherits:
QueryBase
  • Object
show all
Defined in:
lib/acts-as-taggable-on/taggable/tagged_with_query/exclude_tags_query.rb

Instance Method Summary collapse

Methods inherited from QueryBase

#initialize

Constructor Details

This class inherits a constructor from ActsAsTaggableOn::Taggable::TaggedWithQuery::QueryBase

Instance Method Details

#buildObject



7
8
9
10
11
12
# File 'lib/acts-as-taggable-on/taggable/tagged_with_query/exclude_tags_query.rb', line 7

def build
  taggable_model.joins(owning_to_tagger)
                .where(tags_not_in_list)
                .having(tags_that_matches_count)
                .readonly(false)
end