qtil
advanced-security/qtil-ruby 0.0.2
Search

Predicate ActionDispatch::Routing::underscore

Convert a camel-case string to underscore case. Converts :: to /. This can be used to convert ActiveRecord controller names to a canonical form that matches the routes they handle. Note: All-uppercase words like CONSTANT are not handled correctly.

Import path

import codeql.ruby.frameworks.ActionDispatch
string underscore(string base)