diff options
author | Yehuda Katz <wycats@gmail.com> | 2009-08-09 05:52:49 -0300 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-08-09 05:52:49 -0300 |
commit | 60219a13da9899b97f9b2ff4ecb7a9508aeea662 (patch) | |
tree | f20087aff6f9897a3f30526c1357423ef0789708 | |
parent | 9bb8ef9edebf5c27b8a1c67ca3776d52afbc1dc4 (diff) | |
download | rails-60219a13da9899b97f9b2ff4ecb7a9508aeea662.tar.gz rails-60219a13da9899b97f9b2ff4ecb7a9508aeea662.tar.bz2 rails-60219a13da9899b97f9b2ff4ecb7a9508aeea662.zip |
Add a .tmp path
-rw-r--r-- | railties/lib/rails/configuration.rb | 3 | ||||
-rw-r--r-- | railties/test/initializer/path_test.rb | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/railties/lib/rails/configuration.rb b/railties/lib/rails/configuration.rb index fe3cb67d3a..5cc4f80684 100644 --- a/railties/lib/rails/configuration.rb +++ b/railties/lib/rails/configuration.rb @@ -71,7 +71,8 @@ module Rails @paths.lib "lib", :load_path => true @paths.vendor "vendor", :load_path => true @paths.vendor.plugins "vendor/plugins" - @paths.cache "tmp/cache" + @paths.tmp "tmp" + @paths.tmp.cache "tmp/cache" @paths.config "config" @paths.config.locales "config/locales" @paths.config.environments "config/environments", :glob => "#{RAILS_ENV}.rb" diff --git a/railties/test/initializer/path_test.rb b/railties/test/initializer/path_test.rb index 1b73cdc73e..8de3161546 100644 --- a/railties/test/initializer/path_test.rb +++ b/railties/test/initializer/path_test.rb @@ -30,7 +30,8 @@ class PathsTest < Test::Unit::TestCase assert_path @paths.lib, "lib" assert_path @paths.vendor, "vendor" assert_path @paths.vendor.plugins, "vendor", "plugins" - assert_path @paths.cache, "tmp", "cache" + assert_path @paths.tmp, "tmp" + assert_path @paths.tmp.cache, "tmp", "cache" assert_path @paths.config, "config" assert_path @paths.config.locales, "config", "locales" assert_path @paths.config.environments, "config", "environments" |