Commit 1ce28983 authored by Illya Klymov's avatar Illya Klymov

Make incompatible_repos consistent accross all controllers

Unify incompatible_repos behavior with other protected methods
parent c4ae74fd
...@@ -30,7 +30,7 @@ class Import::BaseController < ApplicationController ...@@ -30,7 +30,7 @@ class Import::BaseController < ApplicationController
end end
def incompatible_repos def incompatible_repos
[] raise NotImplementedError
end end
def provider_name def provider_name
......
...@@ -89,6 +89,11 @@ class Import::FogbugzController < Import::BaseController ...@@ -89,6 +89,11 @@ class Import::FogbugzController < Import::BaseController
end end
# rubocop: enable CodeReuse/ActiveRecord # rubocop: enable CodeReuse/ActiveRecord
override :incompatible_repos
def incompatible_repos
[]
end
override :provider_name override :provider_name
def provider_name def provider_name
:fogbugz :fogbugz
......
...@@ -54,6 +54,11 @@ class Import::GitlabController < Import::BaseController ...@@ -54,6 +54,11 @@ class Import::GitlabController < Import::BaseController
end end
# rubocop: enable CodeReuse/ActiveRecord # rubocop: enable CodeReuse/ActiveRecord
override :incompatible_repos
def incompatible_repos
[]
end
override :provider_name override :provider_name
def provider_name def provider_name
:gitlab :gitlab
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment