1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use sprockets precompile

This commit is contained in:
Joshua Peek 2011-03-22 16:24:01 -05:00
parent 989103a233
commit 8c26d0dba6

View file

@ -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