Inspect the result, not .to_s
This commit is contained in:
parent
e050e7e99a
commit
677b66b3d2
@ -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
|
||||
|
@ -1,3 +1,3 @@
|
||||
module ControllerFilterLogging
|
||||
VERSION = "0.0.1"
|
||||
VERSION = "0.0.2"
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user