Permalink
Browse files

Merge pull request #12886 from akshay-vishnoi/refactor

#presence used
  • Loading branch information...
2 parents 436a9c1 + 1529e61 commit 05427671d5c9a68d5b8cf883e246beb190e56c6f @fxn fxn committed Nov 14, 2013
Showing with 1 addition and 5 deletions.
  1. +1 −5 actionpack/lib/action_controller/metal/rendering.rb
View
6 actionpack/lib/action_controller/metal/rendering.rb
@@ -27,11 +27,7 @@ def render_to_string(*)
end
def render_to_body(options = {})
- super || if options[:text].present?
- options[:text]
- else
- " "
- end
+ super || options[:text].presence || ' '
end
private

0 comments on commit 0542767

Please sign in to comment.