Permalink
Browse files

more pleasant whitespace

  • Loading branch information...
1 parent f701882 commit 3048459c8a8c4b023df29d3d81deec628267acf5 @mjtko committed Sep 6, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 actionpack/lib/sprockets/assets.rake
@@ -44,9 +44,11 @@ namespace :assets do
asset_path = config.assets.digest ? asset.digest_path : logical_path
manifest[logical_path] = asset_path
filename = target.join(asset_path)
+
mkdir_p filename.dirname
asset.write_to(filename)
asset.write_to("#{filename}.gz") if filename.to_s =~ /\.(css|js)$/
+
if config.assets.digest && undigested_as
undigested = target.join(logical_path)
case undigested_as

0 comments on commit 3048459

Please sign in to comment.