Class: TingYun::Frameworks::Rails3

Inherits:
Rails show all
Defined in:
lib/ting_yun/frameworks/rails3.rb

Direct Known Subclasses

Rails4

Instance Attribute Summary

Attributes included from InstanceMethods

#local_env

Instance Method Summary collapse

Methods inherited from Rails

#init_config, #install_browser_monitoring, #rails_config, #root

Methods inherited from Ruby

#init_config, #root

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

#envObject



9
10
11
# File 'lib/ting_yun/frameworks/rails3.rb', line 9

def env
  @env ||= ::Rails.env.to_s
end

#rails_rootObject



13
14
15
# File 'lib/ting_yun/frameworks/rails3.rb', line 13

def rails_root
  ::Rails.root.to_s
end

#vendor_rootObject



17
18
19
# File 'lib/ting_yun/frameworks/rails3.rb', line 17

def vendor_root
  @vendor_root ||= File.join(root, 'vendor', 'rails')
end

#versionObject



21
22
23
# File 'lib/ting_yun/frameworks/rails3.rb', line 21

def version
  @rails_version ||= TingYun::Support::VersionNumber.new(::Rails::VERSION::STRING)
end