diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2019-03-04 16:35:38 +0100 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2019-03-12 11:10:39 +0100 |
commit | 0cabb555f0ba3afd74dbb9814bdeae6fc9651df2 (patch) | |
tree | 9bea5f7fc76aab42ed0ca88d277deacc80be879d /lib/gitlab/ci/model.rb | |
parent | db37b5a4c8d408e1bce0843162c609dcb1781188 (diff) | |
download | gitlab-ce-0cabb555f0ba3afd74dbb9814bdeae6fc9651df2.tar.gz |
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.
Diffstat (limited to 'lib/gitlab/ci/model.rb')
-rw-r--r-- | lib/gitlab/ci/model.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |