module Tagliatelle::Taggable::ClassMethods
Public Instance Methods
tagged_with(tags)
click to toggle source
# File lib/tagliatelle/taggable.rb, line 21 def tagged_with(tags) joins(:tags) .where(tags: { name: tags.map(&:to_s) }) .preload(:tags) .distinct end