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

Revert "Provide a way to access to assets without using the digest, useful for static files and emails"

This reverts commit 82afaa0686.
This commit is contained in:
Santiago Pastorino 2011-09-14 00:29:03 -07:00
parent 5f28c22722
commit 0d48b3afa9
3 changed files with 0 additions and 6 deletions

View file

@ -43,7 +43,6 @@ namespace :assets do
mkdir_p filename.dirname
asset.write_to(filename)
asset.write_to("#{filename}.gz") if filename.to_s =~ /\.(css|js)$/
asset.write_to(target.join(logical_path))
end
end
end

View file

@ -12,9 +12,6 @@
*Rails 3.1.0 (unreleased)*
* Provide a way to access to assets without using the digest, useful for
static files and emails. [Santiago Pastorino]
* The default database schema file is written as UTF-8. [Aaron Patterson]
* Generated apps with --dev or --edge flags depend on git versions of

View file

@ -58,9 +58,7 @@ module ApplicationTests
Dir.chdir(app_path){ `bundle exec rake assets:precompile` }
end
files = Dir["#{app_path}/public/assets/application-*.js"]
files << Dir["#{app_path}/public/assets/application.js"].first
files << Dir["#{app_path}/public/assets/foo/application-*.js"].first
files << Dir["#{app_path}/public/assets/foo/application.js"].first
files.each do |file|
assert_not_nil file, "Expected application.js asset to be generated, but none found"
assert_equal "alert()", File.read(file)