Is there a shorter way to write unless foo.nil? or foo.blank?
in Rails 3.1? The check itself should not raise an error.
Sure; blank?
covers nil
.
unless foo.blank?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With