diff options
author | José Valim <jose.valim@gmail.com> | 2011-07-12 22:55:34 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-07-12 22:55:34 -0300 |
commit | 704ee0df65b6ae9f39bbd4c7b3ed697a4039efd8 (patch) | |
tree | 16cc6f457636fa470c269dfcd6e5e81133fb40a3 /railties/lib/rails | |
parent | 8f0e0b63f526967fc13c78eedb5c3a28a8f6ee75 (diff) | |
download | rails-704ee0df65b6ae9f39bbd4c7b3ed697a4039efd8.tar.gz rails-704ee0df65b6ae9f39bbd4c7b3ed697a4039efd8.tar.bz2 rails-704ee0df65b6ae9f39bbd4c7b3ed697a4039efd8.zip |
Use cache/assets instead.
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/application/configuration.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/app/app_generator.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/tasks/tmp.rake | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/railties/lib/rails/application/configuration.rb b/railties/lib/rails/application/configuration.rb index 82caad580d..975e159999 100644 --- a/railties/lib/rails/application/configuration.rb +++ b/railties/lib/rails/application/configuration.rb @@ -38,7 +38,7 @@ module Rails @assets.precompile = [ /\w+\.(?!js|css).+/, /application.(css|js)$/ ] @assets.prefix = "/assets" - @assets.cache_store = [ :file_store, "#{root}/tmp/assets_cache/" ] + @assets.cache_store = [ :file_store, "#{root}/tmp/cache/assets/" ] @assets.js_compressor = nil @assets.css_compressor = nil end diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb index 72086d5e66..d9dd33518a 100644 --- a/railties/lib/rails/generators/rails/app/app_generator.rb +++ b/railties/lib/rails/generators/rails/app/app_generator.rb @@ -118,7 +118,7 @@ module Rails def tmp empty_directory "tmp/cache" - empty_directory "tmp/assets_cache" + empty_directory "tmp/cache/assets" end def vendor diff --git a/railties/lib/rails/tasks/tmp.rake b/railties/lib/rails/tasks/tmp.rake index fd972d5aed..0d6c10328f 100644 --- a/railties/lib/rails/tasks/tmp.rake +++ b/railties/lib/rails/tasks/tmp.rake @@ -4,7 +4,7 @@ namespace :tmp do desc "Creates tmp directories for sessions, cache, sockets, and pids" task :create do - FileUtils.mkdir_p(%w( tmp/sessions tmp/cache tmp/sockets tmp/pids tmp/assets_cache )) + FileUtils.mkdir_p(%w( tmp/sessions tmp/cache tmp/sockets tmp/pids tmp/cache/assets )) end namespace :sessions do @@ -18,7 +18,6 @@ namespace :tmp do # desc "Clears all files and directories in tmp/cache" task :clear do FileUtils.rm_rf(Dir['tmp/cache/[^.]*']) - FileUtils.rm_rf(Dir['tmp/assets_cache/[^.]*']) end end |