diff options
author | Maxim Rydkin <maks.rydkin@gmail.com> | 2017-09-06 14:13:52 +0300 |
---|---|---|
committer | Maxim Rydkin <maks.rydkin@gmail.com> | 2017-09-12 22:32:01 +0300 |
commit | c295d3362b610945de5c722616b39323a48c377e (patch) | |
tree | 8ac4886d8f90abe0cb9c286baa68e7018c1e66fc /lib | |
parent | f364cc34ea7562e782964b2c65428055d525e440 (diff) | |
download | gitlab-ce-c295d3362b610945de5c722616b39323a48c377e.tar.gz |
move `lib/ci/model.rb` into `lib/gitlab/ci/model.rb`
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ci/model.rb | 11 | ||||
-rw-r--r-- | lib/gitlab/ci/model.rb | 13 |
2 files changed, 13 insertions, 11 deletions
diff --git a/lib/ci/model.rb b/lib/ci/model.rb deleted file mode 100644 index c42a0ad36db..00000000000 --- a/lib/ci/model.rb +++ /dev/null @@ -1,11 +0,0 @@ -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 diff --git a/lib/gitlab/ci/model.rb b/lib/gitlab/ci/model.rb new file mode 100644 index 00000000000..3994a50772b --- /dev/null +++ b/lib/gitlab/ci/model.rb @@ -0,0 +1,13 @@ +module Gitlab + 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 +end |