This would actually evaluate the expression `0 || 6`, which comes out to `0`, and then tests whether that's equal to `Time.now.wday` -- so this will only return true if the current day is Sunday. If you wanted to do it this way, it would need to be `Time.now.wday == 0 || Time.now.wday == 6`.