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

new_has_variable.rb « concerns « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 429bf496872d82ba5cc1dd365f6aaff269ff17b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module NewHasVariable
  extend ActiveSupport::Concern
  include HasVariable

  included do
    attr_encrypted :value,
      mode: :per_attribute_iv,
      algorithm: 'aes-256-gcm',
      key: Settings.attr_encrypted_db_key_base_32,
      insecure_mode: false
  end
end