reidmorrison / symmetric-encryption

Symmetric Encryption for Ruby Projects using OpenSSL
https://logger.rocketjob.github.io/
Apache License 2.0
475 stars 92 forks source link

Lazily loads ORM adapters to mitigate #110 #119

Closed williamatodd closed 5 years ago

williamatodd commented 5 years ago

Issue # (if available)

See #110.

Description of changes

Lazily loads ORM adapters instead of explicitly requiring them within lib/symmetric_encryption.rb.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

le0pard commented 5 years ago

Is it will fail, if no active_support in project? @williamatodd

reidmorrison commented 5 years ago

Good idea, using ActiveSupport.on_load will definitely help. Can we wrap it with a require for active support in case a project is not using it?