Sha256: 5b6856175d2bda6ec7ec39f62ac823f1fe97c55de34cf23fdeb68859648b28be
Contents?: true
Size: 850 Bytes
Versions: 3
Compression:
Stored size: 850 Bytes
Contents
require "symmetric_encryption/core" # Add extensions. Gems are no longer order dependent. begin require "rails" require "symmetric_encryption/railtie" rescue LoadError end begin require "active_support" ActiveSupport.on_load(:active_record) do require "symmetric_encryption/active_record/attr_encrypted" require "symmetric_encryption/railties/symmetric_encryption_validator" if ActiveRecord.version >= Gem::Version.new("5.0.0") ActiveRecord::Type.register(:encrypted, SymmetricEncryption::ActiveRecord::EncryptedAttribute) end ActiveRecord::Base.include(SymmetricEncryption::ActiveRecord::AttrEncrypted) end ActiveSupport.on_load(:mongoid) do require "symmetric_encryption/railties/mongoid_encrypted" require "symmetric_encryption/railties/symmetric_encryption_validator" end rescue LoadError end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
symmetric-encryption-4.4.0 | lib/symmetric_encryption.rb |
symmetric-encryption-4.3.3 | lib/symmetric_encryption.rb |
symmetric-encryption-4.3.2 | lib/symmetric_encryption.rb |