module Polytag::Concerns::Taggable::AssociationExtensions

Public Instance Methods

no_tag_group() click to toggle source
# File lib/polytag/concerns/taggable/association_extensions.rb, line 9
def no_tag_group
  where(polytag_tag_group_id: nil, owner_type: nil, owner_id: nil)
end
tag_group(args = {}) click to toggle source
# File lib/polytag/concerns/taggable/association_extensions.rb, line 5
def tag_group(args = {})
  includes(:tag_group).merge(::Polytag.get(tag_group: args[:tag_group], owner: args[:tag_group_owner]))
end