Module: Unsakini::EncryptableModelConcern

Extended by:
ActiveSupport::Concern
Included in:
Board, Comment, Post, UserBoard
Defined in:
app/models/concerns/unsakini/encryptable_model_concern.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#encryptable_attributesObject

Returns the model’s ‘encryptable_attributes` class instance variable.



36
37
38
# File 'app/models/concerns/unsakini/encryptable_model_concern.rb', line 36

def encryptable_attributes
  self.class.instance_variable_get(:@encryptable_attributes) || []
end