Module: AttrEncryptor::Adapters::ActiveRecord

Defined in:
lib/attr_encryptor/adapters/active_record.rb

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object

:nodoc:



5
6
7
8
9
10
11
12
13
14
# File 'lib/attr_encryptor/adapters/active_record.rb', line 5

def self.extended(base) # :nodoc:
  base.class_eval do
    class << self
      alias_method_chain :attr_encrypted, :defined_attributes
      alias_method_chain :attr_encryptor, :defined_attributes
    end
    
    attr_encrypted_options[:encode] = true
  end
end