aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/tasks/assets.rake
blob: 158df31749f94d2641323d0e07ee19cfb3f5616c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
namespace :assets do
  desc "Compile all the assets named in config.assets.precompile"
  task :precompile => :environment do
    # Give assets access to asset_path
    ActionView::Helpers::SprocketsHelper

    assets = Rails.application.config.assets.precompile
    Rails.application.assets.precompile(*assets)
  end
end