• blackst0ne's avatar
    [Rails5] Fix Ci::Pipeline validator for source · 7f6691dd
    blackst0ne 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
pipeline.rb 16.6 KB