aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-12-06 02:33:37 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-12-06 02:33:37 +0900
commitdd049292d99ae7ae6815d5dac1f1c1668cad4460 (patch)
tree2aab1f11bf91fc7855505333716d8768cd6ac8a6 /app/controllers/application_controller.rb
parent850c485806e3289993952e8a5207693921e828ba (diff)
downloadaclog-dd049292d99ae7ae6815d5dac1f1c1668cad4460.tar.gz
frontend: fix errors (wip)
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index ece3494..ef448d6 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -1,5 +1,4 @@
class ApplicationController < ActionController::Base
- include SecurityHeaders
include ControllerErrorHandling
include Utils
@@ -61,6 +60,7 @@ class ApplicationController < ActionController::Base
end
def render_json(data:, **kwargs)
+ sleep 1
__render__({ json: { authenticity_token: form_authenticity_token, current_user: current_user, data: data } }.merge(kwargs))
end
end