Class: TypeStation::FileController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- TypeStation::FileController
- Defined in:
- app/controllers/type_station/file_controller.rb
Constant Summary collapse
- IMAGE_FORMATS =
['jpg', 'jpe', 'jpeg', 'jpc', 'jp2', 'j2k', 'wdp', 'jxr', 'hdp', 'png', 'gif', 'gif', 'webp', 'webp', 'bmp', 'tif', 'tiff', 'ico', 'pdf', 'ps', 'ept', 'eps', 'eps3', 'psd', 'svg', 'ai', 'djvu', 'flif', 'tga']
Instance Method Summary collapse
Instance Method Details
#download ⇒ Object
6 7 8 |
# File 'app/controllers/type_station/file_controller.rb', line 6 def download redirect_to private_download_url end |