Replace gsub with tr

This commit is contained in:
Matheus Richard 2021-04-22 22:31:49 -03:00
parent 487ff1330c
commit 63e7ef6fe1

@ -207,7 +207,7 @@ def define_delegated_type_methods(role, types:, options:)
end
types.each do |type|
scope_name = type.tableize.gsub("/", "_")
scope_name = type.tableize.tr("/", "_")
singular = scope_name.singularize
query = "#{singular}?"