Replace gsub
with tr
This commit is contained in:
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}?"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user