Skip to content

Instantly share code, notes, and snippets.

Created July 22, 2019 01:19
What would you like to do?
Rails routes AST access
# Run this with `rails runner route_ast.rb`
Rails.application.routes.routes.each do |route|
ast = route.ast
# do stuff with AST...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment