workaround for carrierwave uploads. see https://github.com/rails/rails/issues/9830