• Tan Le's avatar
    Audit change model that is different than entity · 7d144520
    Tan Le authored
    This extends `for_changes` method to accept reference of target object
    being audited. Previously the `entity` is used to record both scope and
    target change object. While that is true in some context (i.e. the
    target model happens to be a User/Project/Group), it does not work for
    `ApprovalProjectRule` (i.e. the target model is `ApprovalProjectRule`
    and the entity is the associated Project)
    7d144520
project_feature_changes_auditor.rb 1.14 KB