Skip to content
Browse files

only log session_id if @session object responds to .session_id.

In functional test cases you often pass in a hash as session object which doesn't have this method. 

git-svn-id: 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 4e76ae3 commit 373bc86d2d8bb49bd4dbef1256207f52c8dcb0ac Tobias Lütke committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/base.rb
2  actionpack/lib/action_controller/base.rb
@@ -846,7 +846,7 @@ def initialize_current_url
def log_processing "\n\nProcessing #{controller_class_name}\##{action_name} (for #{request_origin}) [#{request.method.to_s.upcase}]"
- " Session ID: #{@session.session_id}" if @session
+ " Session ID: #{@session.session_id}" if @session and @session.respond_to?(:session_id) " Parameters: #{@params.inspect}"

0 comments on commit 373bc86

Please sign in to comment.
Something went wrong with that request. Please try again.