diff options
author | José Valim <jose.valim@gmail.com> | 2009-10-09 09:17:08 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-10-15 18:19:25 -0300 |
commit | aeaabc6d2d6f9faaa98057f33c0635d8add54461 (patch) | |
tree | e4779db2dc0853fae9415b9a2345e568598409f4 /railties/lib/rails/application.rb | |
parent | 8f59d7a8d8e736d7f4b6730020c197d008fb0779 (diff) | |
download | rails-aeaabc6d2d6f9faaa98057f33c0635d8add54461.tar.gz rails-aeaabc6d2d6f9faaa98057f33c0635d8add54461.tar.bz2 rails-aeaabc6d2d6f9faaa98057f33c0635d8add54461.zip |
Configure Orchestra on initialization.
Diffstat (limited to 'railties/lib/rails/application.rb')
-rw-r--r-- | railties/lib/rails/application.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb index a0e5d6a5a5..8e0e28c362 100644 --- a/railties/lib/rails/application.rb +++ b/railties/lib/rails/application.rb @@ -487,5 +487,16 @@ module Rails Rails::Generators.options.deep_merge! config.generators.options end end + + # For each framework, search for instrument file with Orchestra hooks. + # + initializer :load_orchestra_instrumentation do + config.frameworks.each do |framework| + begin + require "#{framework}/instrument" + rescue LoadError => e + end + end + end end end |