How to avoid short-circuit evaluation on

后端 未结 0 1796
慢半拍i
慢半拍i 2021-02-11 18:09

I\'m working with Ruby on Rails and would like to validate two different models :

if (model1.valid? && model2.valid?)
...
end

However,

相关标签:
回答
  • 消灭零回复
提交回复
热议问题