diff options
author | Rémy Coutable <remy@rymai.me> | 2017-01-14 08:18:40 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-01-15 09:07:29 +0300 |
commit | f6cc29ed83921c3dce98d8c519c4826e7cc8221a (patch) | |
tree | 72e16219c0c0609c2516ae9eb62bd9b3136f7a3f /lib/gitlab/github_import | |
parent | b038c53073b191df2044f96d4ff5d01a35b22d83 (diff) |
Don't persist ApplicationSetting in test env
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/gitlab/github_import')
-rw-r--r-- | lib/gitlab/github_import/project_creator.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/github_import/project_creator.rb b/lib/gitlab/github_import/project_creator.rb index 3f635be22ba..a55adc9b1c8 100644 --- a/lib/gitlab/github_import/project_creator.rb +++ b/lib/gitlab/github_import/project_creator.rb @@ -1,6 +1,8 @@ module Gitlab module GithubImport class ProjectCreator + include Gitlab::CurrentSettings + attr_reader :repo, :name, :namespace, :current_user, :session_data, :type def initialize(repo, name, namespace, current_user, session_data, type: 'github') @@ -34,7 +36,7 @@ module Gitlab end def visibility_level - repo.private ? Gitlab::VisibilityLevel::PRIVATE : ApplicationSetting.current.default_project_visibility + repo.private ? Gitlab::VisibilityLevel::PRIVATE : current_application_settings.default_project_visibility end # |