Sha256: 11bab7fcdcade1dc87a29a62a1877e58e9325987c920621f3fd7dbe6531aecc9

Contents?: true

Size: 337 Bytes

Versions: 1

Compression:

Stored size: 337 Bytes

Contents

module WarningSigns
  class RailsDeprecationCatcher < ActiveSupport::Subscriber
    include CallerLocationHelper
    attach_to :rails

    def deprecation(event)
      Deprecation.new(
        event.payload[:message],
        source: "rails",
        backtrace: caller_locations[caller_location_start..]
      ).invoke
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
warning_signs-0.5.0 lib/warning_signs/rails_deprecation_catcher.rb