Sha256: f31088f8544ff7483f18dddd5de9b868da70b252da74f430baf5ccfa7103e75c
Contents?: true
Size: 229 Bytes
Versions: 5
Compression:
Stored size: 229 Bytes
Contents
class FindByTagsStrategy < QueryStrategy def initialize(model, tags) super() @model = model @tags = tags end def execute @model.joins(:haystack_tags).where(haystack_tags: { id: @tags.map(&:id) }) end end
Version data entries
5 entries across 5 versions & 1 rubygems