Added custom log.

This commit is contained in:
Martin Edenhofer 2013-08-21 11:54:07 +02:00
parent 9392b5a21c
commit 977acf0a52

View file

@ -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