Sha256: 4ae4bd86153fc45f9c24c68618f4a1f8d8ab0eca158d9e1a31b176d9be806d93

Contents?: true

Size: 584 Bytes

Versions: 7

Compression:

Stored size: 584 Bytes

Contents

# frozen_string_literal: true

require 'influxer/metrics/scoping/default'
require 'influxer/metrics/scoping/named'

if Influxer.active_model3?
  require 'influxer/metrics/scoping/old_current_scope'
else
  require 'influxer/metrics/scoping/current_scope'
end

module Influxer
  # Clone of ActiveRecord::Relation scoping
  module Scoping # :nodoc:
    extend ActiveSupport::Concern

    class Error < StandardError; end

    included do
      include Default
      include Named
    end

    module ClassMethods # :nodoc:
      include Influxer::Scoping::CurrentScope
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
influxer-1.1.6 lib/influxer/metrics/scoping.rb
influxer-1.1.5 lib/influxer/metrics/scoping.rb
influxer-1.1.4 lib/influxer/metrics/scoping.rb
influxer-1.1.3 lib/influxer/metrics/scoping.rb
influxer-1.1.2 lib/influxer/metrics/scoping.rb
influxer-1.1.1 lib/influxer/metrics/scoping.rb
influxer-1.1.0 lib/influxer/metrics/scoping.rb