Sha256: f57e5bb1e7d454b71123b90aa512a365c4e2bcc9d5b5fb0c02e8ebc56fd7248d

Contents?: true

Size: 674 Bytes

Versions: 2

Compression:

Stored size: 674 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/railties/attr_encrypted'
    require 'symmetric_encryption/railties/symmetric_encryption_validator'

    ActiveRecord::Base.include(SymmetricEncryption::Railties::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

2 entries across 2 versions & 1 rubygems

Version Path
symmetric-encryption-4.2.1 lib/symmetric_encryption.rb
symmetric-encryption-4.2.0 lib/symmetric_encryption.rb