Class: MrVideo::EpisodesController

Inherits:
MrVideoController show all
Defined in:
app/controllers/mr_video/episodes_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



12
13
14
15
16
# File 'app/controllers/mr_video/episodes_controller.rb', line 12

def destroy
  cassette = Cassette.find(params[:cassette_id])
  @episode = cassette.find_episode_by_id(params[:id])
  @episode.destroy
end

#showObject



5
6
7
8
9
10
# File 'app/controllers/mr_video/episodes_controller.rb', line 5

def show
  show_presenter = Episodes::ShowPresenter.new(self)

  # TODO: Add method for sending decompressed content
  send_data show_presenter.content, type: show_presenter.content_type, disposition: 'inline'
end