Skip to content

Instantly share code, notes, and snippets.

View andyt's full-sized avatar

Ash Triggs andyt

  • Pembrokeshire, Wales, UK
View GitHub Profile
@andyt
andyt / gist:0609a5890c7bdf313259133da803497a
Created November 4, 2025 15:39
De-dupe deprecation warnings in Rails test output
config.active_support.deprecation = proc do |message|
@deprecation_messages ||= []
unless @deprecation_messages.include?(message)
@deprecation_messages << message
warn message
end
end