Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: f4a2b9ee85
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (16 sloc) 0.616 kb
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{ |file| rm file }
end
end
Jump to Line
Something went wrong with that request. Please try again.