2016-09-17 15:47:26 +00:00
|
|
|
class MediaController < ApplicationController
|
|
|
|
before_action :set_media_attachment
|
|
|
|
|
|
|
|
def show
|
2016-09-22 19:39:53 +00:00
|
|
|
redirect_to TagManager.instance.url_for(@media_attachment.status)
|
2016-09-17 15:47:26 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def set_media_attachment
|
|
|
|
@media_attachment = MediaAttachment.where.not(status_id: nil).find(params[:id])
|
|
|
|
end
|
|
|
|
end
|