Sha256: 2413f3eb1aab906f0e05e14a6c5d718ed988bbceec0839b81611b23d30367db6

Contents?: true

Size: 574 Bytes

Versions: 9

Compression:

Stored size: 574 Bytes

Contents

if defined?(DataMapper)
  module AttrEncrypted
    module Adapters
      module DataMapper
        def self.extended(base) # :nodoc:
          class << base
            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

  DataMapper::Resource.extend AttrEncrypted::Adapters::DataMapper
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
attr_encrypted-1.4.0 lib/attr_encrypted/adapters/data_mapper.rb
attr_encrypted-1.3.5 lib/attr_encrypted/adapters/data_mapper.rb
attr_encrypted-1.3.4 lib/attr_encrypted/adapters/data_mapper.rb
attr_encrypted-1.3.3 lib/attr_encrypted/adapters/data_mapper.rb
attr_encrypted-1.3.2 lib/attr_encrypted/adapters/data_mapper.rb
attr_encrypted-1.3.1 lib/attr_encrypted/adapters/data_mapper.rb
attr_encrypted-1.3.0 lib/attr_encrypted/adapters/data_mapper.rb
attr_encrypted-1.2.1 lib/attr_encrypted/adapters/data_mapper.rb
attr_encrypted-1.2.0 lib/attr_encrypted/adapters/data_mapper.rb