aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorVishnu Atrai <vishnu.atrai@gmail.com>2011-05-30 11:26:11 +0530
committerVishnu Atrai <vishnu.atrai@gmail.com>2011-05-30 11:26:11 +0530
commitf4a2b9ee85be47a221f38b805583ff8186f18f3c (patch)
treeff045697f08f3521d2c39aefaf82af86bf5f4d02 /railties
parent008a0ecdb13642b6761b5d8b3bb6ce4c4eb0899a (diff)
downloadrails-f4a2b9ee85be47a221f38b805583ff8186f18f3c.tar.gz
rails-f4a2b9ee85be47a221f38b805583ff8186f18f3c.tar.bz2
rails-f4a2b9ee85be47a221f38b805583ff8186f18f3c.zip
refectored assets:clean task
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/tasks/assets.rake4
1 files changed, 1 insertions, 3 deletions
diff --git a/railties/lib/rails/tasks/assets.rake b/railties/lib/rails/tasks/assets.rake
index 263a695214..5f87edc9e2 100644
--- a/railties/lib/rails/tasks/assets.rake
+++ b/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