Module: Glue::Taggable::ClassMethods

Defined in:
lib/glue/taggable.rb

Instance Method Summary collapse

Instance Method Details

#find_with_any_tag(*names) ⇒ Object

Find objects with any of the provided tags. UNION (OR)



183
184
185
# File 'lib/glue/taggable.rb', line 183

def find_with_any_tag(*names)
  return find_request(:any, names)
end

#find_with_tags(*names) ⇒ Object Also known as: find_with_tag

Find objects with all of the provided tags. INTERSECTION (AND)



175
176
177
# File 'lib/glue/taggable.rb', line 175

def find_with_tags(*names)
  return find_request(:all, names)
end