Module: EncryptableAttributes::Base

Extended by:
ActiveSupport::Concern
Defined in:
lib/encryptable_attributes/base.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object

Override ActiveRecord accessor



6
7
8
# File 'lib/encryptable_attributes/base.rb', line 6

def [](key)
  send key
end

#[]=(key, value) ⇒ Object

Override ActiveRecord accessor



11
12
13
# File 'lib/encryptable_attributes/base.rb', line 11

def []=(key, value)
  send "#{key}=", value
end