summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
authorblackst0ne <blackst0ne.ru@gmail.com>2018-05-12 00:07:23 +1100
committerblackst0ne <blackst0ne.ru@gmail.com>2018-05-12 00:07:23 +1100
commit7f6691dde7be7c024d3ed9f9fee8b56813a45e51 (patch)
treea35042bdc6ac5ed6c2dd7e52d27b43f27ab4c8da /Gemfile
parent8c2b73dc8c5adf41b94033fe1d0a265524e304c4 (diff)
downloadgitlab-ce-7f6691dde7be7c024d3ed9f9fee8b56813a45e51.tar.gz
[Rails5] Fix Ci::Pipeline validator for sourceblackst0ne-rails5-fix-spec-models-ci-pipeline_spec-rb
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.
Diffstat (limited to 'Gemfile')
0 files changed, 0 insertions, 0 deletions