mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 22:52:32 -05:00
fix AR encryption
This commit is contained in:
1 parent
de13d8d397
commit
05b7acf6aa
3 files changed
+6
No files matched your search
@@ -79,6 +79,8 @@ Rails.application.configure do
|
||||
key_derivation_salt: 'dev key derivation salt'
|
||||
}
|
||||
|
||||
ActiveRecord::Encryption.configure(**config.active_record.encryption)
|
||||
|
||||
# Raises error for missing translations.
|
||||
# config.i18n.raise_on_missing_translations = true
|
||||
|
||||
|
||||
@@ -115,6 +115,8 @@ Rails.application.configure do
|
||||
key_derivation_salt: Digest::SHA256.hexdigest(encryption_secret)
|
||||
}
|
||||
|
||||
ActiveRecord::Encryption.configure(**config.active_record.encryption)
|
||||
|
||||
# Do not dump schema after migrations.
|
||||
config.active_record.dump_schema_after_migration = false
|
||||
|
||||
|
||||
@@ -67,6 +67,8 @@ Rails.application.configure do
|
||||
key_derivation_salt: 'test key derivation salt'
|
||||
}
|
||||
|
||||
ActiveRecord::Encryption.configure(**config.active_record.encryption)
|
||||
|
||||
config.middleware.use(Class.new do
|
||||
def initialize(app)
|
||||
@app = app
|
||||
|
||||
Reference in new issue
Block a user