def set_file
      if have_file?
        case original_resource_mounter.send(:storage).class.name
        when 'CarrierWave::Storage::File'
          set_file_for_local_storage
        when 'CarrierWave::Storage::Fog', 'CarrierWave::Storage::AWS'
          set_file_for_remote_storage
        else
          raise UnknowStorage
        end
      else
        raise NoFileForOriginalResource
      end
    end
def set_file
      if have_file?
        case original_resource_mounter.send(:storage).class.name
        when 'CarrierWave::Storage::File'
          set_file_for_local_storage
        when 'CarrierWave::Storage::Fog', 'CarrierWave::Storage::AWS'
          set_file_for_remote_storage
        else
          raise UnknowStorage
        end
      else
        raise NoFileForOriginalResource
      end
    end
#set_file

 sets file for given storage type

 reason why case is comparing String and not actual storage class
 is that user may or may not add gem "fog" => this class may not be
 loaded