Permalink
Browse files

call asset:precompile task explicitly on re-invocation; fixes #3198

  • Loading branch information...
1 parent 6759a88 commit 8f5feebd28c0c8e221a39fdcd68fcde3c5ff2d41 @mjtko committed Oct 3, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/sprockets/assets.rake
@@ -6,7 +6,7 @@ namespace :assets do
if ENV["RAILS_GROUPS"].to_s.empty? || ENV["RAILS_ENV"].to_s.empty?
ENV["RAILS_GROUPS"] ||= "assets"
ENV["RAILS_ENV"] ||= "production"
- ruby $0, *ARGV
+ ruby $0, 'assets:precompile'
exit
else
require "fileutils"
@@ -42,7 +42,7 @@ namespace :assets do
YAML.dump(manifest, f)
end
ENV["RAILS_ASSETS_NONDIGEST"] = "true"
- ruby $0, *ARGV
+ ruby $0, 'assets:precompile'
exit
end
end

0 comments on commit 8f5feeb

Please sign in to comment.