Sha256: 39fd274b3520b5e855beac59e2e809a512ac31202ca10a99c07768d066c95605
Contents?: true
Size: 464 Bytes
Versions: 1
Compression:
Stored size: 464 Bytes
Contents
# encoding: UTF-8 require 'fileutils' module Spontaneous::Media # Represents a temporary file used to provide a media file that is visible # publically under a /media/tmp/* URL for passing to file fields for # asynchronous processing class TempFile < File def storage Spontaneous::Site.default_storage end def media_dir F.join("tmp", padded_id) end def storage_path ["tmp", padded_id, filename] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spontaneous-0.2.0.beta1 | lib/spontaneous/media/temp_file.rb |