jnicklas/carrierwave — Issue #525: CarrierWave::Uploader::Url#to_s should not return nil
Author: frahugo
Created: 2011-11-16 21:22:28+00:00
State: open

#to_s is aliased to #url which can return a nil value. I think to_s should never return a nil value. NilClass.to_s returns ''.

Proposed solution:

```ruby
def to_s
url || ''
end
```