Skip to content
  • John Hawthorn's avatar
    146ae32b
    Freeze modifications to ActiveRecord::QueryLogs · 146ae32b
    John Hawthorn authored
    Tags and taggings build a cache when they are assigned, which means we
    cannot support them being mutated. This freezes tags and taggings to
    ensure they aren't changed after assignment.
    
    This may not cover all cases, and per the previous PR we intend this to
    be configured mostly via application.config, but it covers a case we
    were making in our test suite and so should hopefully cover a mistake
    users are somewhat likely to make.
    146ae32b
    Freeze modifications to ActiveRecord::QueryLogs
    John Hawthorn authored
    Tags and taggings build a cache when they are assigned, which means we
    cannot support them being mutated. This freezes tags and taggings to
    ensure they aren't changed after assignment.
    
    This may not cover all cases, and per the previous PR we intend this to
    be configured mostly via application.config, but it covers a case we
    were making in our test suite and so should hopefully cover a mistake
    users are somewhat likely to make.
Loading