short circuit evaluation
Ruby doesn’t look at both expressions unless it has to; if it sees
false && true
it stops reading as soon as it sees &&
because it knows false &&
anything must be false.
0
Kudos
0
Kudos
Ruby doesn’t look at both expressions unless it has to; if it sees
false && true
it stops reading as soon as it sees &&
because it knows false &&
anything must be false.
I want share my experience in the group from our Monday meetup yesterday. Let’s refresh the memory: “do authorization with pundit gem” – Homework here on github issue #12 https://rubygems.org/gems/pundit We went to this page and bundle... Continue →