rumblelabs/asset_sync — pull request #59 by kamui (2012-03-23 16:19:21+00:00)
Title: Use Rails.public_path and Pathname#join for path concat and string interpolation

Rails has a `Rails.public_path` method you can use to get the public path. So instead of hard coding `Rails.root` and `public` we can use that.

I also noticed you use a lot of `File.join` and string interpolation for generating paths. A lot of these use `Rails.root`, which returns a `Pathname`. We can call join on `Rails.root` instead and make it look a little more readable by removing the File.join method calls.

In your spec, your `Rails.root` returns a string, but in a Rails environment, it always returns a `Pathname`.

It's a minor change, but I thought I'd send a pull request if you were interested. Thanks!