Module: AttrEncrypted::Adapters::DataMapper
- Defined in:
- lib/attr_encrypted/adapters/data_mapper.rb
Class Method Summary collapse
-
.extended(base) ⇒ Object
:nodoc:.
Instance Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
:nodoc:
7 8 9 10 11 12 |
# File 'lib/attr_encrypted/adapters/data_mapper.rb', line 7 def self.extended(base) # :nodoc: class << base alias_method :included_without_attr_encrypted, :included alias_method :included, :included_with_attr_encrypted end end |
Instance Method Details
#included_with_attr_encrypted(base) ⇒ Object
14 15 16 17 18 |
# File 'lib/attr_encrypted/adapters/data_mapper.rb', line 14 def included_with_attr_encrypted(base) included_without_attr_encrypted(base) base.extend AttrEncrypted base.[:encode] = true end |