• Thong Kuah's avatar
    Exclude sensitive attributes in serializable_hash by default · 5d26f377
    Thong Kuah authored
    Fields declared as encrypted via below is excluded by serializable_hash:
    
    - add_authentication_token_field
    - attr_encrypted
    
    Skip SensitiveSerializableHash within JsonCache
    
    We skip SensitiveSerializableHash in JsonCache as the current behavior
    expects to serialize the entirety of the object, specifically Geo.
    
    Also fix other broken specs from using SensitiveSerializableHash
    5d26f377
application_record.rb 3.59 KB