Class: FileUploadCache::CachedFilesController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/file_upload_cache/cached_files_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



5
6
7
8
9
# File 'app/controllers/file_upload_cache/cached_files_controller.rb', line 5

def show
  options = {:disposition => 'inline'}
  options.merge!({:type => current_cached_file.content_type}) if current_cached_file.content_type
  send_data current_cached_file.read, options
end