Permalink
Browse files

Revert "Provide a way to access to assets without using the digest, u…

…seful for static files and emails"

This reverts commit 82afaa0.
  • Loading branch information...
1 parent 058593d commit f85cd49f9c499418f8a729c6708e9d21853d6ed3 @spastorino spastorino committed Sep 14, 2011
Showing with 0 additions and 6 deletions.
  1. +0 −1 actionpack/lib/sprockets/assets.rake
  2. +0 −3 railties/CHANGELOG
  3. +0 −2 railties/test/application/assets_test.rb
@@ -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
@@ -1,8 +1,5 @@
*Rails 3.1.0 (August 30, 2011)*
-* 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 @@ def app
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)

0 comments on commit f85cd49

Please sign in to comment.