diff options
author | Joshua Peek <josh@joshpeek.com> | 2008-11-29 15:59:47 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-11-29 15:59:47 -0600 |
commit | cec8a92a6d37699a2dbc8fdeb5393113d3621ef9 (patch) | |
tree | c712add3aa6d70c9ba75e0963a79984e0aff750f /railties/lib | |
parent | 9fccf72725a72baeda508eccd6113b44329e0a7c (diff) | |
parent | fdfcdf467387c4db3d79c1f46eadbb55a88ef814 (diff) | |
download | rails-cec8a92a6d37699a2dbc8fdeb5393113d3621ef9.tar.gz rails-cec8a92a6d37699a2dbc8fdeb5393113d3621ef9.tar.bz2 rails-cec8a92a6d37699a2dbc8fdeb5393113d3621ef9.zip |
Merge branch 'master' of git@github.com:rails/rails
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/initializer.rb | 8 | ||||
-rw-r--r-- | railties/lib/rails/backtrace_cleaner.rb | 4 |
2 files changed, 4 insertions, 8 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb index a69898e2c5..8e8bcf21fe 100644 --- a/railties/lib/initializer.rb +++ b/railties/lib/initializer.rb @@ -48,12 +48,8 @@ module Rails end end - def root - if defined?(RAILS_ROOT) - RAILS_ROOT - else - nil - end + def root(*args) + File.join(RAILS_ROOT, *args.compact) if defined?(RAILS_ROOT) end def env diff --git a/railties/lib/rails/backtrace_cleaner.rb b/railties/lib/rails/backtrace_cleaner.rb index 82537d962f..d8626aaf14 100644 --- a/railties/lib/rails/backtrace_cleaner.rb +++ b/railties/lib/rails/backtrace_cleaner.rb @@ -3,11 +3,11 @@ module Rails ERB_METHOD_SIG = /:in `_run_erb_.*/ VENDOR_DIRS = %w( vendor/plugins vendor/gems vendor/rails ) - MONGREL_DIRS = %w( lib/mongrel bin/mongrel ) + SERVER_DIRS = %w( lib/mongrel bin/mongrel lib/rack ) RAILS_NOISE = %w( script/server ) RUBY_NOISE = %w( rubygems/custom_require benchmark.rb ) - ALL_NOISE = VENDOR_DIRS + MONGREL_DIRS + RAILS_NOISE + RUBY_NOISE + ALL_NOISE = VENDOR_DIRS + SERVER_DIRS + RAILS_NOISE + RUBY_NOISE def initialize super |