aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2013-12-03 02:34:57 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2013-12-03 02:34:57 -0500
commit66b1c2d3b5fbca53d0627a3332e6d3c25edc8b6b (patch)
tree889b6d081f53c9ae2fee782f4ae7d4769aa3cd78 /actionpack
parent9ed3aab6927471078888ff51c255561350946344 (diff)
downloadrails-66b1c2d3b5fbca53d0627a3332e6d3c25edc8b6b.tar.gz
rails-66b1c2d3b5fbca53d0627a3332e6d3c25edc8b6b.tar.bz2
rails-66b1c2d3b5fbca53d0627a3332e6d3c25edc8b6b.zip
Cleanups in comment about conditional
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/metal/rendering.rb3
1 files changed, 2 insertions, 1 deletions
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.