diff --git a/app/models/integration.rb b/app/models/integration.rb index 672574d8dd..e94cea8af9 100644 --- a/app/models/integration.rb +++ b/app/models/integration.rb @@ -89,4 +89,10 @@ def parameter_keys def name nature.to_s.camelize end + + class << self + def active?(name) + find_by_nature(name).present? + end + end end