Permalink
Browse files

We don't need Rails.root here, so let's not have it

  • Loading branch information...
1 parent 1d45dcc commit db07c67bde1875c19b2fd01576b67baac1cc6af1 @jystewart jystewart 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 db07c67

Please sign in to comment.