Sha256: 11228bc090f5917bcc6ade94c3226e0ac8779d1bc93bfa9081cacc8c368d3815

Contents?: true

Size: 298 Bytes

Versions: 28

Compression:

Stored size: 298 Bytes

Contents

module Workarea
  class Segment
    module Rules
      class Tags < Base
        include Mongoid::Document::Taggable

        def qualifies?(visit)
          return false if tags.blank? || visit.metrics.tags.blank?
          (tags & visit.metrics.tags).any?
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-core-3.5.6 app/models/workarea/segment/rules/tags.rb
workarea-core-3.5.5 app/models/workarea/segment/rules/tags.rb
workarea-core-3.5.4 app/models/workarea/segment/rules/tags.rb
workarea-core-3.5.3 app/models/workarea/segment/rules/tags.rb
workarea-core-3.5.2 app/models/workarea/segment/rules/tags.rb
workarea-core-3.5.1 app/models/workarea/segment/rules/tags.rb
workarea-core-3.5.0 app/models/workarea/segment/rules/tags.rb
workarea-core-3.5.0.beta.1 app/models/workarea/segment/rules/tags.rb