From 677b66b3d237b5d5f02078cb1db34fe8cd58dc2f Mon Sep 17 00:00:00 2001 From: Jon Moses Date: Sun, 8 May 2011 13:10:58 -0400 Subject: [PATCH] Inspect the result, not .to_s --- lib/controller_filter_logging.rb | 2 +- lib/controller_filter_logging/version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/controller_filter_logging.rb b/lib/controller_filter_logging.rb index 27ed87c..3234e80 100644 --- a/lib/controller_filter_logging.rb +++ b/lib/controller_filter_logging.rb @@ -20,7 +20,7 @@ module AbstractController::Callbacks::ClassMethods define_method("#{filter_name}_with_logging") do Rails.logger.debug("Entering before_filter: #{filter_name}") send(filter_name).tap do |result| - Rails.logger.debug(" result: #{result}") + Rails.logger.debug(" result: #{result.inspect}") end end end diff --git a/lib/controller_filter_logging/version.rb b/lib/controller_filter_logging/version.rb index 522de0a..5cce997 100644 --- a/lib/controller_filter_logging/version.rb +++ b/lib/controller_filter_logging/version.rb @@ -1,3 +1,3 @@ module ControllerFilterLogging - VERSION = "0.0.1" + VERSION = "0.0.2" end