diff options
author | José Valim <jose.valim@gmail.com> | 2011-06-29 09:39:41 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-06-29 09:41:16 -0300 |
commit | c690b7124d2f2206342d11aebb7aa3fc990046d2 (patch) | |
tree | 1d4e0bc6a60c46ae7e2e6fed8965320ed997f208 /railties/lib/rails/tasks | |
parent | 4106245530bc573c035fe70e8fc8633e89741abd (diff) | |
download | rails-c690b7124d2f2206342d11aebb7aa3fc990046d2.tar.gz rails-c690b7124d2f2206342d11aebb7aa3fc990046d2.tar.bz2 rails-c690b7124d2f2206342d11aebb7aa3fc990046d2.zip |
[IMPORTANT] Make "sprockets/railtie" require explicit.
This makes "sprockets/railtie" explicit. This means that sprockets will
be loaded when you require "rails/all". If you are not using requiring
"rails/all", you need to manually load it with all other framework
railties.
In order to be complete, this commit also adds --skip-sprockets to
the rails generator.
Diffstat (limited to 'railties/lib/rails/tasks')
-rw-r--r-- | railties/lib/rails/tasks/assets.rake | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/railties/lib/rails/tasks/assets.rake b/railties/lib/rails/tasks/assets.rake deleted file mode 100644 index 0236350576..0000000000 --- a/railties/lib/rails/tasks/assets.rake +++ /dev/null @@ -1,26 +0,0 @@ -namespace :assets do - desc "Compile all the assets named in config.assets.precompile" - task :precompile do - if ENV["RAILS_GROUPS"].to_s.empty? - ENV["RAILS_GROUPS"] = "assets" - Kernel.exec $0, *ARGV - else - Rake::Task["environment"].invoke - Sprockets::Helpers::RailsHelper - - assets = Rails.application.config.assets.precompile - Rails.application.assets.precompile(*assets) - end - 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}/**/*") - file_list.each do |file| - rm_rf file - rm_rf "#{file}.gz" - end - end -end |