Commit 0cabb555 authored by Yorick Peterse's avatar Yorick Peterse

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.
parent db37b5a4
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment