1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

#presence used

This commit is contained in:
Akshay Vishnoi 2013-11-14 16:08:43 +05:30
parent 3134605391
commit 1529e61036

View file

@ -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