From 977acf0a52b4cf06ec3457d68dff5fe9d8bf6342 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 21 Aug 2013 11:54:07 +0200 Subject: [PATCH] Added custom log. --- app/controllers/application_controller.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 9215386e3..c37b92707 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -14,7 +14,7 @@ class ApplicationController < ActionController::Base :mode_show_rendeder, :model_index_render - before_filter :set_user, :session_update + before_filter :log_request, :set_user, :session_update before_filter :cors_preflight_check after_filter :set_access_control_headers @@ -52,6 +52,10 @@ class ApplicationController < ActionController::Base Observer::Ticket::Notification.transaction end + def log_request + puts Time.now().to_s + ' ' + request.original_fullpath.to_s + end + # Finds the User with the ID stored in the session with the key # :current_user_id This is a common way to handle user login in # a Rails application; logging in sets the session value and