• Tan Le's avatar
    Fix missing attributes on token audit events · a7713e44
    Tan Le authored
    The bug is caused by the column value being overwritten will nil value
    in the `details` hash. The `after_validation` callback always writes the
    column value using the `details` value, regardless whether it has been
    specified or not.
    
    This change ensures nil check was performed before setting values in
    both column and `detail` hash. The column value takes precedence over
    the `details` value.
    
    Changelog: fixed
    EE: true
    a7713e44
audit_event_presenter_spec.rb 2.93 KB