aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/sprockets/assets.rake
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2011-09-13 15:16:53 -0700
committerSantiago Pastorino <santiago@wyeworks.com>2011-09-13 15:18:21 -0700
commit82afaa06861d03f6a2887d40e40c0ded76db88db (patch)
tree1bc9c22cb01f00effcfbfaac4479215d22bedc67 /actionpack/lib/sprockets/assets.rake
parent11870117c6d9231b79e8125218728423e9dff207 (diff)
downloadrails-82afaa06861d03f6a2887d40e40c0ded76db88db.tar.gz
rails-82afaa06861d03f6a2887d40e40c0ded76db88db.tar.bz2
rails-82afaa06861d03f6a2887d40e40c0ded76db88db.zip
Provide a way to access to assets without using the digest, useful for static files and emails
Diffstat (limited to 'actionpack/lib/sprockets/assets.rake')
-rw-r--r--actionpack/lib/sprockets/assets.rake1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/sprockets/assets.rake b/actionpack/lib/sprockets/assets.rake
index 0531b1509b..ee8ca1b3dd 100644
--- a/actionpack/lib/sprockets/assets.rake
+++ b/actionpack/lib/sprockets/assets.rake
@@ -43,6 +43,7 @@ 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