Welcome to mirror list, hosted at ThFree Co, Russian Federation.

namespaced_model_name.rb « ci « concerns « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e941a3a7a0cf4b974c6514709234a6cbe4bf13bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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