Sha256: 997ef7354bcd53ecf8b1a3ea75896771806ea2f4bb78787425ea09c9ce62e63b

Contents?: true

Size: 343 Bytes

Versions: 6

Compression:

Stored size: 343 Bytes

Contents

# frozen_string_literal: true

if defined?(Sequel)
  module AttrEncrypted
    module Adapters
      module Sequel
        def self.extended(base) # :nodoc:
          base.attr_encrypted_options[:encode] = true
        end
      end
    end
  end

  Sequel::Model.extend AttrEncrypted
  Sequel::Model.extend AttrEncrypted::Adapters::Sequel
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
attr_encrypted-4.1.1 lib/attr_encrypted/adapters/sequel.rb
attr_encrypted-4.1.0 lib/attr_encrypted/adapters/sequel.rb
attr_encrypted-4.0.0 lib/attr_encrypted/adapters/sequel.rb
powerhome-attr_encrypted-1.2.0 lib/attr_encrypted/adapters/sequel.rb
powerhome-attr_encrypted-1.1.0 lib/attr_encrypted/adapters/sequel.rb
powerhome-attr_encrypted-1.0.1 lib/attr_encrypted/adapters/sequel.rb