-
[Rails5] Fix Ci::Pipeline validator for source · 7f6691ddblackst0ne authored
In Rails 5 enum returns value instead of key. For this case, the `NilClass` is returned instead of `unknown` which breaks validation of the `source` attribute. This commit adds a custom validatior that returns the correct result for both rails4 and rails5.
7f6691dd
×