Created
October 31, 2022 20:46
-
-
Save rzane/7ee58e540507d22441e2000d5d3bf11d to your computer and use it in GitHub Desktop.
Deprecate Rails path helpers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deprecator = ActiveSupport::Deprecation.new('in the future', 'B4B') | |
deprecator.behavior = ActiveSupport::Deprecation.behavior | |
ActiveSupport::Deprecation.deprecate_methods( | |
Rails.application.routes.named_routes.path_helpers_module, | |
:foo_path, | |
:bar_path, | |
deprecator: deprecator | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment