aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAkshay Vishnoi <akshay.vishnoi@vinsol.com>2013-11-14 16:08:43 +0530
committerAkshay Vishnoi <akshay.vishnoi@vinsol.com>2013-11-14 16:08:43 +0530
commit1529e610362739f793eae9474183fd2f301425ac (patch)
treef6ddf117cd384684ec799edbb91d68bb4592f097 /actionpack
parent3134605391e4d5cf270f2ba79ea810eee4cffc5a (diff)
downloadrails-1529e610362739f793eae9474183fd2f301425ac.tar.gz
rails-1529e610362739f793eae9474183fd2f301425ac.tar.bz2
rails-1529e610362739f793eae9474183fd2f301425ac.zip
#presence used
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_controller/metal/rendering.rb6
1 files changed, 1 insertions, 5 deletions
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