From 1529e610362739f793eae9474183fd2f301425ac Mon Sep 17 00:00:00 2001 From: Akshay Vishnoi Date: Thu, 14 Nov 2013 16:08:43 +0530 Subject: #presence used --- actionpack/lib/action_controller/metal/rendering.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'actionpack/lib/action_controller/metal') diff --git a/actionpack/lib/action_controller/metal/rendering.rb b/actionpack/lib/action_controller/metal/rendering.rb index 90f0ef0b1c..5c48b4ab98 100644 --- a/actionpack/lib/action_controller/metal/rendering.rb +++ b/actionpack/lib/action_controller/metal/rendering.rb @@ -27,11 +27,7 @@ module ActionController end def render_to_body(options = {}) - super || if options[:text].present? - options[:text] - else - " " - end + super || options[:text].presence || ' ' end private -- cgit v1.2.3