From 46881e3627264fb3978c5f810c2e8255a34ca305 Mon Sep 17 00:00:00 2001 From: Bastian Schmidt Date: Fri, 6 Dec 2024 11:43:17 +0100 Subject: [PATCH] Add pluralize exception for class name ResourceQuota Fixes role permission name where the class name pluralize is called to inflect permissions --- config/initializers/inflections.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index ea918e2..09c5710 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -2,6 +2,7 @@ ActiveSupport::Inflector.inflections do |inflect| inflect.irregular 'resource_quota', 'resource_quotas' + inflect.irregular 'ResourceQuota', 'ResourceQuotas' inflect.irregular 'host_resources', 'hosts_resources' inflect.irregular 'HostResources', 'HostsResources' end