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



14
15
16
# File 'lib/encryptable_attributes/base.rb', line 14

def [](key)
  send key
end

#[]=(key, value) ⇒ Object

Override ActiveRecord accessor



19
20
21
# File 'lib/encryptable_attributes/base.rb', line 19

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