Skip to content
Browse files

Switch cache helpers to new Cache class

  • Loading branch information...
1 parent e8a570c commit 3b67683951240b2bc9a2966ce4fd89fca1d57e6f @fny fny committed Jun 30, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/language_pack/rails3.rb
View
8 lib/language_pack/rails3.rb
@@ -45,7 +45,7 @@ def run_assets_precompile_rake_task
puts "Detected manifest.yml, assuming assets were compiled locally"
else
FileUtils.mkdir_p('public')
- cache_load "public/assets"
+ cache.load "public/assets"
ENV["RAILS_GROUPS"] ||= "assets"
ENV["RAILS_ENV"] ||= "production"
@@ -65,14 +65,14 @@ def run_assets_precompile_rake_task
run("env PATH=$PATH:bin bundle exec rake assets:clean_expired 2>&1")
if $?.success?
log "assets_clean_expired", :status => "success"
- cache_store "public/assets"
+ cache.store "public/assets"
else
log "assets_clean_expired", :status => "failure"
- cache_clear "public/assets"
+ cache.clear "public/assets"
end
end
else
- cache_clear "public/assets"
+ cache.clear "public/assets"
end
else
log "assets_precompile", :status => "failure"

0 comments on commit 3b67683

Please sign in to comment.
Something went wrong with that request. Please try again.