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

model.rb « ci « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c42a0ad36dbaf764de78183cba6232d8d655896a (plain)
1
2
3
4
5
6
7
8
9
10
11
module Ci
  module Model
    def table_name_prefix
      "ci_"
    end

    def model_name
      @model_name ||= ActiveModel::Name.new(self, nil, self.name.split("::").last)
    end
  end
end