ruby script to generate the routes based on the rails PR.
https://github.com/stevegraham/rails/pull/1
This commit is contained in:
parent
0e488403a9
commit
6b39b72ebe
1 changed files with 6 additions and 0 deletions
6
gen_routes.rb
Normal file
6
gen_routes.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env ruby
|
||||
arr = ["foo", "bar", "baz", "qux", "quux", "corge", "grault", "garply"]
|
||||
paths = arr.permutation(3).map { |a| "/#{a.join '/'}" }
|
||||
paths.each do |path|
|
||||
puts "rtree_insert_path(n, \"#{path}\", NULL);"
|
||||
end
|
Loading…
Reference in a new issue