Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/integration.rb')
-rw-r--r--app/models/integration.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/app/models/integration.rb b/app/models/integration.rb
index 33955b088f1..b4408301c6d 100644
--- a/app/models/integration.rb
+++ b/app/models/integration.rb
@@ -219,13 +219,6 @@ class Integration < ApplicationRecord
# Also keep track of updated properties in a similar way as ActiveModel::Dirty
def self.boolean_accessor(*args)
args.each do |arg|
- # TODO: Allow legacy usage of `.boolean_accessor`, once all integrations
- # are converted to the field DSL we can remove this and only call
- # `.boolean_accessor` through `.field`.
- #
- # See https://gitlab.com/groups/gitlab-org/-/epics/7652
- prop_accessor(arg) unless method_defined?(arg)
-
class_eval <<~RUBY, __FILE__, __LINE__ + 1
# Make the original getter available as a private method.
alias_method :#{arg}_before_type_cast, :#{arg}
@@ -242,6 +235,7 @@ class Integration < ApplicationRecord
RUBY
end
end
+ private_class_method :boolean_accessor
def self.to_param
raise NotImplementedError