Module: Decidim::RecordEncryptor

Extended by:
ActiveSupport::Concern
Included in:
Authorization
Defined in:
lib/decidim/record_encryptor.rb

Overview

A concern that provides attribute encryption e.g. to active record models.

Use this e.g. in models as follows:

class Example < ApplicationRecord

include Decidim::RecordEncryptor

encrypt_attribute :name, type: :string
encrypt_attribute :metadata, type: :hash

end