debian-mirror-gitlab/app/models/concerns/ci/namespaced_model_name.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
231 B
Ruby
Raw Normal View History

2021-10-27 15:23:28 +05:30
# frozen_string_literal: true
module Ci
module NamespacedModelName
extend ActiveSupport::Concern
class_methods do
def model_name
@model_name ||= ActiveModel::Name.new(self, Ci)
end
end
end
end