Permalink
Browse files

refectored assets:clean task

  • Loading branch information...
1 parent 008a0ec commit f4a2b9ee85be47a221f38b805583ff8186f18f3c @vishnuatrai vishnuatrai committed May 30, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 railties/lib/rails/tasks/assets.rake
@@ -1,5 +1,3 @@
-require "fileutils"
-
namespace :assets do
desc "Compile all the assets named in config.assets.precompile"
task :precompile => :environment do
@@ -15,6 +13,6 @@ namespace :assets do
assets = Rails.application.config.assets
public_asset_path = Rails.public_path + assets.prefix
file_list = FileList.new("#{public_asset_path}/*.js", "#{public_asset_path}/*.css")
- file_list.each{ |list| FileUtils.rm list }
+ file_list.each{ |file| rm file }
end
end

0 comments on commit f4a2b9e

Please sign in to comment.