From 6795a9b30905a6e0b28a8d5458b452cb385d21b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Sat, 24 Sep 2011 02:15:18 +0200 Subject: Remove the ENV flag, yagni. --- actionpack/lib/sprockets/assets.rake | 3 --- railties/test/application/assets_test.rb | 10 ---------- 2 files changed, 13 deletions(-) diff --git a/actionpack/lib/sprockets/assets.rake b/actionpack/lib/sprockets/assets.rake index 5dd48fea98..782ea38991 100644 --- a/actionpack/lib/sprockets/assets.rake +++ b/actionpack/lib/sprockets/assets.rake @@ -1,9 +1,6 @@ namespace :assets do desc "Compile all the assets named in config.assets.precompile" task :precompile do - # let rails know we're precompiling assets - ENV["RAILS_ASSETS_PRECOMPILE"] = 'true' - # We need to do this dance because RAILS_GROUPS is used # too early in the boot process and changing here is already too late. if ENV["RAILS_GROUPS"].to_s.empty? || ENV["RAILS_ENV"].to_s.empty? diff --git a/railties/test/application/assets_test.rb b/railties/test/application/assets_test.rb index fb570d8f47..85320ccba5 100644 --- a/railties/test/application/assets_test.rb +++ b/railties/test/application/assets_test.rb @@ -106,16 +106,6 @@ module ApplicationTests assert !File.exists?("#{app_path}/public/assets/something.min.css") end - test "precompile sets flag notifying rails its precompiling" do - add_to_config = <<-RUBY - initializer :check_assets_precompile, :group => :assets do - raise "ENV RAILS_ASSETS_PRECOMPILE not set" unless ENV["RAILS_ASSETS_PRECOMPILE"] - end - RUBY - precompile! - assert $?.success? - end - test "asset pipeline should use a Sprockets::Index when config.assets.digest is true" do add_to_config "config.assets.digest = true" add_to_config "config.action_controller.perform_caching = false" -- cgit v1.2.3