Permalink
Browse files

fix assets precompile plugin detection

  • Loading branch information...
1 parent d58007a commit b8994185f7bce23bfee075101fbe334cf8853624 @hone hone committed Oct 11, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/language_pack/rails3.rb
@@ -77,9 +77,10 @@ def setup_asset_pipeline
rake_output = ""
rake_output << run("env PATH=$PATH:bin bundle exec rake assets:precompile 2>&1")
puts rake_output
- log "assets_precompile", :status => "success"
- unless $?.success?
+ if $?.success?
+ log "assets_precompile", :status => "success"
+ else
log "assets_precompile", :status => "failure"
puts "Precompiling assets failed, enabling runtime asset compilation"
install_plugin("rails31_enable_runtime_asset_compilation")

0 comments on commit b899418

Please sign in to comment.