module Paperclip::Storage::Dropbox::GeneratorFactory
Public Class Methods
build_url_generator(storage, options)
click to toggle source
# File lib/paperclip/storage/dropbox/generator_factory.rb, line 7 def self.build_url_generator(storage, options) credentials = storage.try(:dropbox_credentials) || options[:dropbox_credentials] if credentials[:access_type] == "app_folder" || options[:dropbox_visibility] == "private" PrivateUrlGenerator.new(storage, options) elsif credentials[:access_type] PublicUrlGenerator.new(storage, options) end end