Class: MakeTaggable::Taggable::TaggedWithQuery::QueryBase Private

Inherits:
Object
  • Object
show all
Defined in:
lib/make_taggable/taggable/tagged_with_query/query_base.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Shared Arel plumbing for the three query strategies.

API:

  • private

Direct Known Subclasses

AllTagsQuery, AnyTagsQuery, ExcludeTagsQuery

Instance Method Summary collapse

Constructor Details

#initialize(taggable_model, tag_model, tagging_model, tag_list, options) ⇒ MakeTaggable::Taggable::TaggedWithQuery::QueryBase

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • the model being queried

  • the tag model

  • the tagging model

  • the tags to match

  • the options given to tagged_with

API:

  • private



18
19
20
21
22
23
24
# File 'lib/make_taggable/taggable/tagged_with_query/query_base.rb', line 18

def initialize(taggable_model, tag_model, tagging_model, tag_list, options)
  @taggable_model = taggable_model
  @tag_model = tag_model
  @tagging_model = tagging_model
  @tag_list = tag_list
  @options = options
end