namespace :cache do
task :clean => ["assets:environment"] do
FileUtils.mkdir_p(File.join(::Rails.root.to_s, *%w(tmp cache assets)))
::Rails.application.assets.cache.clear
end
end
with:
namespace :cache do
task :clean => ["assets:environment"] do
FileUtils.mkdir_p(File.join(::Rails.root.to_s, *%w(tmp cache assets)))
if ::Rails.application.assets.cache
::Rails.application.assets.cache.clear
end
end
end
in /lib/turbo-sprockets/tasks/assets.rake, the error goes away, and asset compilation works.
I'd submit a pull request, but I'm not sure this is the correct fix, as it's not clear to me why ::Rails.application.assets.cache is nil.
I get the following error output when attempting to precompile assets, in Rails 3.2.17.
If I replace:
with:
in /lib/turbo-sprockets/tasks/assets.rake, the error goes away, and asset compilation works.
I'd submit a pull request, but I'm not sure this is the correct fix, as it's not clear to me why ::Rails.application.assets.cache is nil.
Please advise.