Sha256: 9f3761cbf255ee261b8adc4f4ad7f34e4e3452279faf3dc680ba58acd974d8e8
Contents?: true
Size: 666 Bytes
Versions: 7
Compression:
Stored size: 666 Bytes
Contents
# encoding: utf-8 require 'ting_yun/instrumentation/support/action_controller_subscriber' TingYun::Support::LibraryDetection.defer do named :rails5_controller depends_on do !::TingYun::Agent.config[:disable_action_controller] end depends_on do defined?(::Rails) && ::Rails::VERSION::MAJOR.to_i == 5 end depends_on do defined?(ActionController) && defined?(ActionController::Base) end executes do ::TingYun::Agent.logger.info 'Installing Rails 5 Controller instrumentation' end executes do ::TingYun::Instrumentation::Rails::ActionControllerSubscriber \ .subscribe(/^process_action.action_controller$/) end end
Version data entries
7 entries across 7 versions & 1 rubygems