J
Joe Ruby
I have code like this in my (Markaby) templates:
tr do
td @item.foo
end unless (@item.foo.nil? || @item.foo.empty?)
Is there a way to combine these two OR clauses into one?
tr do
td @item.foo
end unless @item.foo.nil_or_empty?
Thanks,
Joe
tr do
td @item.foo
end unless (@item.foo.nil? || @item.foo.empty?)
Is there a way to combine these two OR clauses into one?
tr do
td @item.foo
end unless @item.foo.nil_or_empty?
Thanks,
Joe