This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2016-11-15 07:56:29 -08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-09-17 08:47:26 -07:00
|
|
|
class MediaController < ApplicationController
|
|
|
|
before_action :set_media_attachment
|
|
|
|
|
|
|
|
def show
|
2016-09-22 12:39:53 -07:00
|
|
|
redirect_to TagManager.instance.url_for(@media_attachment.status)
|
2016-09-17 08:47:26 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def set_media_attachment
|
|
|
|
@media_attachment = MediaAttachment.where.not(status_id: nil).find(params[:id])
|
|
|
|
end
|
|
|
|
end
|