From 64ba41d9a61bc7dd5d1961686d9afe22ede8491f Mon Sep 17 00:00:00 2001 From: Yuki Date: Fri, 18 Sep 2015 18:01:22 +0900 Subject: [PATCH] Fix reports --- app/controllers/ajax/report_controller.rb | 2 +- config/locales | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/ajax/report_controller.rb b/app/controllers/ajax/report_controller.rb index e5d5fa9c..399e5c12 100644 --- a/app/controllers/ajax/report_controller.rb +++ b/app/controllers/ajax/report_controller.rb @@ -43,7 +43,7 @@ class Ajax::ReportController < ApplicationController return end - current_user.report object, params[:reason] + current_user.report object.find(params[:id]), params[:reason] @status = :okay @message = I18n.t('messages.report.create.okay', parameter: params[:type]) diff --git a/config/locales b/config/locales index f1eb2cc8..b027e6f2 160000 --- a/config/locales +++ b/config/locales @@ -1 +1 @@ -Subproject commit f1eb2cc8e9d06f4aaf4e8f015b5d16550ddec9b0 +Subproject commit b027e6f2c4b3b7c95336dbe3d0a7d53e4da1c4e7