Permalink
Browse files

Precompile configured assets

  • Loading branch information...
josh committed Mar 30, 2011
1 parent 77d8f7a commit 25c0b569f5bac0cfdf2c863cabf3b528165cebca
Showing with 3 additions and 3 deletions.
  1. +2 −2 railties/lib/rails/application/configuration.rb
  2. +1 −1 railties/lib/rails/tasks/assets.rake
@@ -10,7 +10,7 @@ class Configuration < ::Rails::Engine::Configuration
: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 @@ def initialize(*)
@middleware = app_middleware
@generators = app_generators
@asset_pipeline = false
- @compile_assets = []
+ @precompile_assets = []
end
def compiled_asset_path
@@ -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

0 comments on commit 25c0b56

Please sign in to comment.