• Mike Kozono's avatar
    Refactor: Remove requirement for local? method · cb3173e1
    Mike Kozono authored
    For DRYness. And it removes a tiny bit of required work from the
    framework doc.
    
    I was going to write a centralized `local?` method somewhere but
    discovered that all `Uploader` classes include `ObjectStorage::Concern`
    which implements `file_storage?`, which is an equivalent check to these
    `local?` methods.
    
    The `local?` methods are more direct than going through
    `replicator.carrierwave_uploader`, but this change is safe because we
    already depend on `replicator.carrierwave_uploader` in the
    `checksummable?` method.
    cb3173e1
package_file.rb 2.51 KB