Class: FileUploadCache::CachedFilesController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- FileUploadCache::CachedFilesController
- Defined in:
- app/controllers/file_upload_cache/cached_files_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
5 6 7 8 9 |
# File 'app/controllers/file_upload_cache/cached_files_controller.rb', line 5 def show = {:disposition => 'inline'} .merge!({:type => current_cached_file.content_type}) if current_cached_file.content_type send_data current_cached_file.read, end |