Skip to content

Instantly share code, notes, and snippets.

@sickill
Forked from grimsock/gist:282342
Created Jan 20, 2010
Embed
What would you like to do?
def self.cached_deliveries
return [] unless File.exists?(DELIVERIES_CACHE_PATH) && !File.zero?(DELIVERIES_CACHE_PATH)
Marshal.load(File.read(DELIVERIES_CACHE_PATH))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment