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:
parent
5f28c22722
commit
0d48b3afa9
3 changed files with 0 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue