Permalink
Browse files

Merge branch 'master' of github.com:alphagov/cdn_helpers

  • Loading branch information...
2 parents 4876b0a + db07c67 commit 89bd3ea981bf372f167a52a50d802cf1565eec71 @fidothe fidothe committed Apr 14, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/cdn_helpers/cdn_helpers.rake
@@ -11,8 +11,7 @@ namespace :cdn do
logger.level = Logger::INFO
FileList['public/**/*.css'].each do |css_file_path|
css_file_path = Pathname.new(css_file_path).realpath
- public_path = Rails.root.join('public')
- CdnHelpers::CssRewriter.rewrite_css_file(logger, css_file_path, public_path)
+ CdnHelpers::CssRewriter.rewrite_css_file(logger, css_file_path, public_root_path)
end
rescue Errno::ENOENT
end

0 comments on commit 89bd3ea

Please sign in to comment.