Class: TingYun::Frameworks::Rails3
- Defined in:
- lib/ting_yun/frameworks/rails3.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes included from InstanceMethods
Instance Method Summary collapse
Methods inherited from Rails
#init_config, #install_browser_monitoring, #rails_config, #root
Methods inherited from Ruby
Methods included from ClassMethods
#instance, #load_framework_class, #load_test_framework, #local_env, #reset
Methods included from InstanceMethods
#[], #configure_agent, #determine_env, #dispatcher, #framework, #init_plugin, #root, #start_agent
Methods included from Instrumentation
#add_instrumentation, #detect_dependencies, #install_instrumentation, #load_instrumentation_files
Instance Method Details
#env ⇒ Object
9 10 11 |
# File 'lib/ting_yun/frameworks/rails3.rb', line 9 def env @env ||= ::Rails.env.to_s end |
#rails_root ⇒ Object
13 14 15 |
# File 'lib/ting_yun/frameworks/rails3.rb', line 13 def rails_root ::Rails.root.to_s end |
#vendor_root ⇒ Object
17 18 19 |
# File 'lib/ting_yun/frameworks/rails3.rb', line 17 def vendor_root @vendor_root ||= File.join(root, 'vendor', 'rails') end |
#version ⇒ Object
21 22 23 |
# File 'lib/ting_yun/frameworks/rails3.rb', line 21 def version @rails_version ||= TingYun::Support::VersionNumber.new(::Rails::VERSION::STRING) end |