class Paperclip::Storage::Dropbox::PublicUrlGenerator
Public Instance Methods
file_url(style)
click to toggle source
# File lib/paperclip/storage/dropbox/public_url_generator.rb, line 6 def file_url(style) url = URI.parse("https://dl.dropboxusercontent.com/u/#{user_id}/") path = @attachment.path(style) path = path.match(/^Public\//).try(:post_match) url.merge!(URI.encode(path)) url.to_s end