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.
This commit is contained in:
Yorick Peterse 2019-03-04 16:35:38 +01:00
parent db37b5a4c8
commit 0cabb555f0
No known key found for this signature in database
GPG Key ID: EDD30D2BEB691AC9
1 changed files with 1 additions and 1 deletions

View File

@ -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