mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
#presence used
This commit is contained in:
parent
3134605391
commit
1529e61036
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue