lib/plain_apm/extensions/context/railtie.rb in plain_apm-0.8.2 vs lib/plain_apm/extensions/context/railtie.rb in plain_apm-0.8.3

- old
+ new

@@ -4,9 +4,16 @@ # This code is inspired by request_store gem by Steve Klabnik: # # https://github.com/steveklabnik/request_store/ # # See LICENSE.txt in the current directory for the license. + +begin + require "rails/railtie" +rescue LoadError + nil +end + module PlainApm module Extensions module Context if defined?(Rails::Railtie) class Railtie < Rails::Railtie