Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use sprockets precompile

  • Loading branch information...
commit 8c26d0dba6538a29ae117e5f3dbf1dd2d569183d 1 parent 989103a
Joshua Peek josh authored
Showing with 2 additions and 10 deletions.
  1. +2 −10 railties/lib/rails/tasks/assets.rake
12 railties/lib/rails/tasks/assets.rake
View
@@ -1,14 +1,6 @@
namespace :assets do
task :compile => :environment do
- env = Rails.application.assets
-
- assets = Rails.root.join("public/assets")
- assets.mkdir unless assets.exist?
-
- Rails.application.config.compile_assets.each do |path|
- assets.join(path).open('w') do |f|
- f.write env[path].to_s
- end
- end
+ assets = ENV['assets'].split(',')
+ Rails.application.assets.precompile(*assets)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.