Ruby: Make helper predicate private

This commit is contained in:
Harry Maclean
2022-09-06 11:11:48 +01:00
parent 6d3f87f610
commit d9487a07b1

View File

@@ -607,7 +607,7 @@ class ActiveRecordAssociation extends DataFlow::CallNode {
*/
bindingset[input]
bindingset[result]
string pluralize(string input) {
private string pluralize(string input) {
exists(string stem | stem + "y" = input | result = stem + "ies")
or
not exists(string stem | stem + "s" = input) and