summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/model.rb
blob: 213301d245e55f256a921f0298abaf6eb35b4d35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Gitlab
  module Ci
    module Model
      def table_name_prefix
        "ci_"
      end

      # rubocop:disable Cop/ModuleWithInstanceVariables
      def model_name
        @model_name ||= ActiveModel::Name.new(self, nil, self.name.split("::").last)
      end
    end
  end
end