Sha256: 2c2777cff2ddb71fe966787f3fd0f72c6fec6fff8bd7f7de9b5638b238dd9bb9

Contents?: true

Size: 513 Bytes

Versions: 7

Compression:

Stored size: 513 Bytes

Contents

module MrVideo

  class EpisodesController < MrVideoController

    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

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

  end # CassettesController class

end # MrVideo module

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mr_video-1.2.0 app/controllers/mr_video/episodes_controller.rb
mr_video-1.1.3 app/controllers/mr_video/episodes_controller.rb
mr_video-1.1.1 app/controllers/mr_video/episodes_controller.rb
mr_video-1.1.0 app/controllers/mr_video/episodes_controller.rb
mr_video-1.0.5 app/controllers/mr_video/episodes_controller.rb
mr_video-1.0.4 app/controllers/mr_video/episodes_controller.rb
mr_video-1.0.2 app/controllers/mr_video/episodes_controller.rb