carrierwave
https://github.com/carrierwaveuploader/carrierwave
Ruby
Classier solution for file uploads for Rails, Sinatra and other Ruby web frameworks
CarrierWave::Storage::File#retrieve_from_cache!
Retrieves the file with the given cache_name from the cache. === Parameters [cache_name (String)] uniquely identifies a cache file === Raises [CarrierWave::InvalidParameter] if the cache_name is incorrectly formatted.
Edit
git clone [email protected]:carrierwaveuploader/carrierwave.git
cd carrierwave
open lib/carrierwave/storage/file.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-CarrierWave--Storage--File-retrieve_from_cache--for-pr
# Commit to gitgit add lib/carrierwave/storage/file.rbgit commit -m "better docs for CarrierWave::Storage::File#retrieve_from_cache!"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-CarrierWave--Storage--File-retrieve_from_cache--for-pr
hub pull-request
# Celebrate!