Skip to content

Instantly share code, notes, and snippets.

@rzane
Created October 31, 2022 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rzane/7ee58e540507d22441e2000d5d3bf11d to your computer and use it in GitHub Desktop.
Save rzane/7ee58e540507d22441e2000d5d3bf11d to your computer and use it in GitHub Desktop.
Deprecate Rails path helpers
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