diff options
author | Akshay Vishnoi <akshay.vishnoi@vinsol.com> | 2013-11-14 16:08:43 +0530 |
---|---|---|
committer | Akshay Vishnoi <akshay.vishnoi@vinsol.com> | 2013-11-14 16:08:43 +0530 |
commit | 1529e610362739f793eae9474183fd2f301425ac (patch) | |
tree | f6ddf117cd384684ec799edbb91d68bb4592f097 /actionpack/lib | |
parent | 3134605391e4d5cf270f2ba79ea810eee4cffc5a (diff) | |
download | rails-1529e610362739f793eae9474183fd2f301425ac.tar.gz rails-1529e610362739f793eae9474183fd2f301425ac.tar.bz2 rails-1529e610362739f793eae9474183fd2f301425ac.zip |
#presence used
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/metal/rendering.rb | 6 |
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 |