Skip to content

Instantly share code, notes, and snippets.

@yuki24
Created Jul 22, 2019
Embed
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...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment