mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Make encryption config optional for self hosting users (#1476)
* Fix redirect 404 bug * Make encryption optional for self-hosters * Fix test
This commit is contained in:
parent
69f6d7f8ea
commit
0af5faaa9f
4 changed files with 19 additions and 3 deletions
|
@ -1,7 +1,10 @@
|
|||
class PlaidItem < ApplicationRecord
|
||||
include Plaidable, Syncable
|
||||
|
||||
encrypts :access_token, deterministic: true
|
||||
if Rails.application.credentials.active_record_encryption.present?
|
||||
encrypts :access_token, deterministic: true
|
||||
end
|
||||
|
||||
validates :name, :access_token, presence: true
|
||||
|
||||
before_destroy :remove_plaid_item
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue