Sha256: 814b3db64fb9cfa7ea83a524e505a72e386d7d4e20eade735cde8f8c955ff8fe
Contents?: true
Size: 830 Bytes
Versions: 6
Compression:
Stored size: 830 Bytes
Contents
# frozen_string_literal: true require "appsignal" require "appsignal/rack/grape_middleware" Appsignal.internal_logger.debug("Loading Grape integration") module Appsignal # @api private module Grape # Alias constants that have moved with a warning message that points to the # place to update the reference. def self.const_missing(name) case name when :Middleware callers = caller Appsignal::Utils::StdoutAndLoggerMessage.warning \ "The constant Appsignal::Grape::Middleware has been deprecated. " \ "Please update the constant name to " \ "Appsignal::Rack::GrapeMiddleware in the following file to " \ "remove this message.\n#{callers.first}" Appsignal::Rack::GrapeMiddleware else super end end end end
Version data entries
6 entries across 6 versions & 1 rubygems