diff options
Diffstat (limited to 'railties/lib/rails/tasks/assets.rake')
-rw-r--r-- | railties/lib/rails/tasks/assets.rake | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/railties/lib/rails/tasks/assets.rake b/railties/lib/rails/tasks/assets.rake deleted file mode 100644 index 4678ea460e..0000000000 --- a/railties/lib/rails/tasks/assets.rake +++ /dev/null @@ -1,21 +0,0 @@ -namespace :assets do - desc "Compile all the assets named in config.assets.precompile" - task :precompile => :environment do - # Give assets access to asset_path - Sprockets::Helpers::RailsHelper - - assets = Rails.application.config.assets.precompile - Rails.application.assets.precompile(*assets) - end - - desc "Remove compiled assets" - task :clean => :environment 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 do |file| - rm file - rm "#{file}.gz", :force => true - end - end -end |