summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-19 14:21:39 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-07-19 15:12:14 +0200
commite15b63b34eba510ba14258f1719ecec2f90b1b49 (patch)
tree289618305b278e01c3540fd9f0d83294be4b9724
parent239d8ab30c660167bd42ff745df3568b16ef82b3 (diff)
downloadgitlab-ce-e15b63b34eba510ba14258f1719ecec2f90b1b49.tar.gz
Fix methods visibility in gitlab database module
-rw-r--r--lib/gitlab/database.rb6
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