Sha256: 8737c79905b0d979435121cb53abe67883a75edad92503beb8f4ad3e3e5570a3

Contents?: true

Size: 261 Bytes

Versions: 8

Compression:

Stored size: 261 Bytes

Contents

# frozen_string_literal: true

class Gutentag::TaggedWith::IDQuery < Gutentag::TaggedWith::Query
  private

  def taggable_ids_query
    Gutentag::Tagging.select(:taggable_id).
      where(:taggable_type => model.name).
      where(:tag_id => values)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gutentag-2.3.1 lib/gutentag/tagged_with/id_query.rb
gutentag-2.3.0 lib/gutentag/tagged_with/id_query.rb
gutentag-2.2.1 lib/gutentag/tagged_with/id_query.rb
gutentag-2.2.0 lib/gutentag/tagged_with/id_query.rb
gutentag-2.1.0 lib/gutentag/tagged_with/id_query.rb
gutentag-2.0.0 lib/gutentag/tagged_with/id_query.rb
gutentag-1.1.0 lib/gutentag/tagged_with/id_query.rb
gutentag-1.0.0 lib/gutentag/tagged_with/id_query.rb