Module: Encrypto::Database::AttrEncrypted

Defined in:
lib/encrypto/database/attr_encrypted.rb

Class Method Summary collapse

Class Method Details

.included(model) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/encrypto/database/attr_encrypted.rb', line 5

def self.included(model)
  model.class_eval do
    attr_encrypted_options.merge!(
      :encryptor => ::Encrypto::Database::Encryptor,
      :key => :encryption_key,
      :encode => false
    )
  end
end