summaryrefslogtreecommitdiff
path: root/app/models/integration.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/integration.rb')
-rw-r--r--app/models/integration.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/integration.rb b/app/models/integration.rb
index 54eeab10360..8bef8b08c19 100644
--- a/app/models/integration.rb
+++ b/app/models/integration.rb
@@ -493,9 +493,9 @@ class Integration < ApplicationRecord
def reencrypt_properties
unless properties.nil? || properties.empty?
- alg = self.class.encrypted_attributes[:properties][:algorithm]
+ alg = self.class.attr_encrypted_attributes[:properties][:algorithm]
iv = generate_iv(alg)
- ep = self.class.encrypt(:properties, properties, { iv: iv })
+ ep = self.class.attr_encrypt(:properties, properties, { iv: iv })
end
{ 'encrypted_properties' => ep, 'encrypted_properties_iv' => iv }