FEATURE: new 'raw email' modal when listing rejected emails

This commit is contained in:
Régis Hanol
2016-02-01 21:41:49 +01:00
parent de58e58272
commit cf4c256b17
9 changed files with 42 additions and 17 deletions

View File

@ -79,7 +79,7 @@ class PostsController < ApplicationController
def raw_email
post = Post.find(params[:id].to_i)
guardian.ensure_can_view_raw_email!(post)
render json: {raw_email: post.raw_email}
render json: { raw_email: post.raw_email }
end
def short_link