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