Sha256: ddbe51d0600c852f76ebb7cdc83638d751b26eac00685b54f2afb85d73623bc8

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

module DeprecationsDetector
  module ActiveSupport
    module DeprecationDecorator
      def warn(message = nil, callstack = caller)
        DeprecationsDetector::Main.add_deprecation(message, caller)

        return if DeprecationsDetector::Main.suppress_deprecations

        super(message, callstack)
      end

      ::ActiveSupport::Deprecation.prepend(self)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
deprecations_detector-0.0.1 lib/deprecations_detector/active_support/deprecation_decorator.rb