Class: Com::AudiosController

Inherits:
BaseController show all
Defined in:
app/controllers/com/audios_controller.rb

Constant Summary

Constants included from RailsCom::Application

RailsCom::Application::LOCALE_MAP

Instance Method Summary collapse

Methods included from RailsCom::Application

#current_title, #default_form_params, #default_params, #json_format?, #set_country, #set_flash, #set_locale, #set_timezone, #set_variant

Instance Method Details

#showObject



9
10
11
# File 'app/controllers/com/audios_controller.rb', line 9

def show
  expires_in ActiveStorage.service_urls_expire_in
end

#transferObject



13
14
15
16
17
18
19
# File 'app/controllers/com/audios_controller.rb', line 13

def transfer
  attached = @attachment.transfer_faststart
  @video = attached.blob

  flash[:notice] = 'well done!'
  render 'show'
end