class Mmtrix::Control::Frameworks::Rails3
Control
subclass instantiated when Rails
is detected. Contains Rails
3.0+ specific configuration, instrumentation, environment values, etc. Many methods are inherited from the Mmtrix::Control::Frameworks::Rails
class, where the two do not differ
Public Instance Methods
env()
click to toggle source
# File lib/mmtrix/control/frameworks/rails3.rb, line 18 def env @env ||= ::Rails.env.to_s end
rails_root()
click to toggle source
# File lib/mmtrix/control/frameworks/rails3.rb, line 22 def rails_root ::Rails.root.to_s end
vendor_root()
click to toggle source
# File lib/mmtrix/control/frameworks/rails3.rb, line 26 def vendor_root @vendor_root ||= File.join(root,'vendor','rails') end
version()
click to toggle source
# File lib/mmtrix/control/frameworks/rails3.rb, line 30 def version @rails_version ||= Mmtrix::VersionNumber.new(::Rails::VERSION::STRING) end
Protected Instance Methods
install_shim()
click to toggle source
Calls superclass method
Mmtrix::Control::Frameworks::Rails#install_shim
# File lib/mmtrix/control/frameworks/rails3.rb, line 36 def install_shim super ActiveSupport.on_load(:action_controller) do include Mmtrix::Agent::Instrumentation::ControllerInstrumentation::Shim end end