thoughtbot/paperclip — pull request #1047 by geoffharcourt (2012-10-11 18:33:19+00:00)
Title: Fix issue where calling expiring_url when using Fog with local storage generates exception

When using Fog in development, swapping in local storage in place of AWS S3 causes the #expiring_url method to raise an exception, as Fog::Storage::Local::Files does not have a #get_http_url method. In order to enable swapping storage engines without building special view helpers for expriring_urls in views, this patch has #expiring_url return #public_url when Fog's storage provider is not AWS.