I have a simple bit of code running inside a rails model.
num = 3
result = num == 0 or num == 2 or num == 3
The result in the above statement should be evaluated to true. But for some reason rails evaluate this to be false when the method is called from the a rails view.
Just to confirm that it is an issue with rails when used with a view, I used the rails console to evaluate the exact same code. the rails console correctly evaluated that statement to true.
Rails Version: 5.1.7
Ruby Version: 2.6.5-p114
Thanks