Permalink
Browse files

#presence used

  • Loading branch information...
1 parent 3134605 commit 1529e610362739f793eae9474183fd2f301425ac Akshay Vishnoi committed Nov 14, 2013
Showing with 1 addition and 5 deletions.
  1. +1 −5 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 1529e61

Please sign in to comment.