The code powering m.abunchtell.com https://m.abunchtell.com
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

16 linhas
336 B

  1. # frozen_string_literal: true
  2. class MediaController < ApplicationController
  3. before_action :set_media_attachment
  4. def show
  5. redirect_to TagManager.instance.url_for(@media_attachment.status)
  6. end
  7. private
  8. def set_media_attachment
  9. @media_attachment = MediaAttachment.where.not(status_id: nil).find(params[:id])
  10. end
  11. end