Closed banhill closed 7 years ago
Can you add a test?
Sure, I'll write it in the next couple of days.
Btw the build failure for ruby v2.4.0 is sporadic and can also be reproduced on master.
Released 1.5.3 with the patch. Thanks.
No problem, glad I could help.
I propose this change to avoid calling an instance method on a not completely initialized object. More precisely to fix the case when an if or unless condition references an attribute that hasn't been set yet.
This gives a NoMethodError, because role is nil, when
enabled?
is evaluated.