about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-22 21:39:53 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-22 21:39:53 +0200
commitc6d893a71dede65dd88a0dfac81178c8e81e27d2 (patch)
treebb557a00fc8be550f32bec792be4530dc0729643 /app/controllers
parentb1a670af8d098c33a8938662f5c0bd60674ea683 (diff)
Uploading/undoing media modifies status text. Also: status text trimmed before validation
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/media_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/media_controller.rb b/app/controllers/media_controller.rb
index 5a7b0bcbd..edfcdae53 100644
--- a/app/controllers/media_controller.rb
+++ b/app/controllers/media_controller.rb
@@ -2,7 +2,7 @@ class MediaController < ApplicationController
   before_action :set_media_attachment
 
   def show
-    redirect TagManager.instance.url_for(@media_attachment.status)
+    redirect_to TagManager.instance.url_for(@media_attachment.status)
   end
 
   private