blob: b6604a49c2edbed1907d1861428748ed86029952 (
plain) (
tree)
|
|
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
end
end
|