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.

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:

  • taggable_model (Class)

    the model being queried

  • tag_model (Class)

    the tag model

  • tagging_model (Class)

    the tagging model

  • tag_list (MakeTaggable::TagList)

    the tags to match

  • options (Hash)

    the options given to tagged_with



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