Skip to content

Conversation

@kpcirclemedical
Copy link
Contributor

@kpcirclemedical kpcirclemedical commented Dec 19, 2025

This auto-adds Administrate.deprecator to the host app, helping with tools like next_rails deprecation tracker

Without this change, app needs to add it in initializer, e.g.

# config/initializers/administrate.rb
Rails.application.deprecators[:administrate] = Administrate.deprecator

This code is based on how the devise gem does it.

This helps with tools like the next_rails deprecation tracker, which
helps track deprecations across Rails apps. It's based on how Devise
approaches the same problem.

https://github.com/fastruby/next_rails?tab=readme-ov-file#deprecation-tracking
https://github.com/heartcombo/devise/blob/c8a64b549c8b37e494eaca7be2def136a7e1b236/lib/devise/rails.rb#L20
@nickcharlton nickcharlton merged commit 23b7044 into thoughtbot:main Jan 23, 2026
30 checks passed
@nickcharlton
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants