[Rails5] Fix Ci::Pipeline validator for source
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.
Showing
Please register or sign in to comment