You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if msg.account.encrypted is set to TRUE, it works like a charm.
if msg.account.encrypted is set to FALSE, the column encrypted_content is filled with uncrypted and the column content is null.
Is this the expected result? Imo if the settings is disabled, it should have no effect in the system. Is there any way to work around it? I need to fill the "content" column when the if: is not met.
The text was updated successfully, but these errors were encountered:
I have the following config:
attr_encrypted :content, key: Settings.crypto_key, if: proc { |msg| msg.account.encrypted }
if msg.account.encrypted is set to TRUE, it works like a charm.
if msg.account.encrypted is set to FALSE, the column encrypted_content is filled with uncrypted and the column content is null.
Is this the expected result? Imo if the settings is disabled, it should have no effect in the system. Is there any way to work around it? I need to fill the "content" column when the if: is not met.
The text was updated successfully, but these errors were encountered: