1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Precompile configured assets

This commit is contained in:
Joshua Peek 2011-03-29 22:11:47 -05:00
parent 77d8f7a4b7
commit 25c0b569f5
2 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@ module Rails
:preload_frameworks, :reload_plugins,
:secret_token, :serve_static_assets, :session_options,
:time_zone, :whiny_nils,
:asset_pipeline, :compile_assets
:asset_pipeline, :precompile_assets
attr_writer :log_level
@ -30,7 +30,7 @@ module Rails
@middleware = app_middleware
@generators = app_generators
@asset_pipeline = false
@compile_assets = []
@precompile_assets = []
end
def compiled_asset_path

View file

@ -1,6 +1,6 @@
namespace :assets do
task :compile => :environment do
assets = ENV['assets'].split(',')
assets = Rails.application.config.precompile_assets
Rails.application.assets.precompile(*assets)
end
end