From 66b1c2d3b5fbca53d0627a3332e6d3c25edc8b6b Mon Sep 17 00:00:00 2001 From: Guillermo Iguaran Date: Tue, 3 Dec 2013 02:34:57 -0500 Subject: Cleanups in comment about conditional --- actionpack/lib/action_controller/metal/rendering.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actionpack') diff --git a/actionpack/lib/action_controller/metal/rendering.rb b/actionpack/lib/action_controller/metal/rendering.rb index cb2965abac..66d34f3b67 100644 --- a/actionpack/lib/action_controller/metal/rendering.rb +++ b/actionpack/lib/action_controller/metal/rendering.rb @@ -34,7 +34,8 @@ module ActionController def _process_format(format) super - self.content_type ||= format.to_s unless format.nil? #here test if format is Mime::NullTye istance, no if is a NillClass or FalseClass + # format is a Mime::NullType instance here then this condition can't be changed to `if format` + self.content_type ||= format.to_s unless format.nil? end # Normalize arguments by catching blocks and setting them on :update. -- cgit v1.2.3