From 0cabb555f0ba3afd74dbb9814bdeae6fc9651df2 Mon Sep 17 00:00:00 2001 From: Yorick Peterse <yorickpeterse@gmail.com> Date: Mon, 4 Mar 2019 16:35:38 +0100 Subject: [PATCH] Backport Gitlab::Ci::Model from EE This backports the EE changes to Gitlab::Ci::Model back into CE, ensuring the code is the same for both versions. --- lib/gitlab/ci/model.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gitlab/ci/model.rb b/lib/gitlab/ci/model.rb index fbdb84c0522..1625cb841b6 100644 --- a/lib/gitlab/ci/model.rb +++ b/lib/gitlab/ci/model.rb @@ -8,7 +8,7 @@ module Gitlab end def model_name - @model_name ||= ActiveModel::Name.new(self, nil, self.name.split("::").last) + @model_name ||= ActiveModel::Name.new(self, nil, self.name.demodulize) end end end -- 2.30.9