Sha256: a334a49bb27b9cf59cb77b17ef8b735fccb1554cdd8b130f1aba095e43f3b87d

Contents?: true

Size: 581 Bytes

Versions: 7

Compression:

Stored size: 581 Bytes

Contents

require 'acts_as_span/span_klass/status'

require 'active_support/core_ext/module/delegation'

module ActsAsSpan
  class SpanKlass
    include ActsAsSpan::SpanKlass::Status

    delegate :start_field,
             :end_field,
             :exclude_end, to: :@acts_as_span_definition

    delegate :table_name, :arel_table, to: :klass, allow_nil: true

    attr_reader :name, :klass, :acts_as_span_definition

    def initialize(name, klass, acts_as_span_definition)
      @name = name
      @klass = klass
      @acts_as_span_definition = acts_as_span_definition
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
acts_as_span-1.2.2 lib/acts_as_span/span_klass.rb
acts_as_span-1.2.1 lib/acts_as_span/span_klass.rb
acts_as_span-1.2.0 lib/acts_as_span/span_klass.rb
acts_as_span-1.1.1 lib/acts_as_span/span_klass.rb
acts_as_span-1.1.0 lib/acts_as_span/span_klass.rb
acts_as_span-1.0.0 lib/acts_as_span/span_klass.rb
acts_as_span-0.0.6 lib/acts_as_span/span_klass.rb