diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-07-19 14:21:39 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-07-19 15:12:14 +0200 |
commit | e15b63b34eba510ba14258f1719ecec2f90b1b49 (patch) | |
tree | 289618305b278e01c3540fd9f0d83294be4b9724 | |
parent | 239d8ab30c660167bd42ff745df3568b16ef82b3 (diff) | |
download | gitlab-ce-e15b63b34eba510ba14258f1719ecec2f90b1b49.tar.gz |
Fix methods visibility in gitlab database module
-rw-r--r-- | lib/gitlab/database.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/gitlab/database.rb b/lib/gitlab/database.rb index 078609c86f1..55b8f888d53 100644 --- a/lib/gitlab/database.rb +++ b/lib/gitlab/database.rb @@ -55,12 +55,12 @@ module Gitlab end end - private - def self.connection ActiveRecord::Base.connection end + private_class_method :connection + def self.database_version row = connection.execute("SELECT VERSION()").first @@ -70,5 +70,7 @@ module Gitlab row.first end end + + private_class_method :database_version end end |