module ActsAsTaggableOn::Taggable::TaggedWithQuery
Public Class Methods
build(taggable_model, tag_model, tagging_model, tag_list, options)
click to toggle source
# File lib/acts_as_taggable_on/taggable/tagged_with_query.rb, line 7 def self.build(taggable_model, tag_model, tagging_model, tag_list, options) if options[:exclude].present? ExcludeTagsQuery.new(taggable_model, tag_model, tagging_model, tag_list, options).build elsif options[:any].present? AnyTagsQuery.new(taggable_model, tag_model, tagging_model, tag_list, options).build else AllTagsQuery.new(taggable_model, tag_model, tagging_model, tag_list, options).build end end