Sha256: c516439e26c51608a21ff37d0b5206858efa12147b0521460d3bf34499301a7f
Contents?: true
Size: 651 Bytes
Versions: 7
Compression:
Stored size: 651 Bytes
Contents
if defined?(DataMapper) module Huberry module AttrEncrypted module Adapters module DataMapper def self.extended(base) base.eigenclass_eval do alias_method :included_without_attr_encrypted, :included alias_method :included, :included_with_attr_encrypted end end def included_with_attr_encrypted(base) included_without_attr_encrypted(base) base.attr_encrypted_options[:encode] = true end end end end end DataMapper::Resource.extend Huberry::AttrEncrypted::Adapters::DataMapper end
Version data entries
7 entries across 7 versions & 3 rubygems