Permalink
Browse files

Use cache/assets instead.

  • Loading branch information...
1 parent d0f05a6 commit 675c20e1bc8d39918f19680326394688f9d63a3a @josevalim josevalim committed Jul 13, 2011
@@ -38,7 +38,7 @@ def initialize(*)
@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
@@ -118,7 +118,7 @@ def test
def tmp
empty_directory "tmp/cache"
- empty_directory "tmp/assets_cache"
+ empty_directory "tmp/cache/assets"
end
def vendor
@@ -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
@@ -34,8 +34,8 @@
vendor
vendor/assets
vendor/plugins
- tmp/assets_cache
tmp/cache
+ tmp/cache/assets
)
class AppGeneratorTest < Rails::Generators::TestCase

0 comments on commit 675c20e

Please sign in to comment.