Module: EncryptableModelConcern
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/encryptable_model_concern.rb
Overview
Responsible for encryption and decryption of certain model attributes
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#encryptable_attributes ⇒ Object
Returns the model’s ‘encryptable_attributes` class instance variable.
Instance Method Details
#encryptable_attributes ⇒ Object
Returns the model’s ‘encryptable_attributes` class instance variable.
36 37 38 |
# File 'app/models/concerns/encryptable_model_concern.rb', line 36 def encryptable_attributes self.class.instance_variable_get(:@encryptable_attributes) || [] end |