You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
302 B

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