Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers_before_autoloader/000_inflections.rb')
-rw-r--r--config/initializers_before_autoloader/000_inflections.rb32
1 files changed, 32 insertions, 0 deletions
diff --git a/config/initializers_before_autoloader/000_inflections.rb b/config/initializers_before_autoloader/000_inflections.rb
new file mode 100644
index 00000000000..1fabce9a57e
--- /dev/null
+++ b/config/initializers_before_autoloader/000_inflections.rb
@@ -0,0 +1,32 @@
+# Be sure to restart your server when you modify this file.
+
+# Add new inflection rules using the following format
+# (all these examples are active by default):
+# ActiveSupport::Inflector.inflections do |inflect|
+# inflect.plural /^(ox)$/i, '\1en'
+# inflect.singular /^(ox)en/i, '\1'
+# inflect.irregular 'person', 'people'
+# inflect.uncountable %w( fish sheep )
+# end
+#
+ActiveSupport::Inflector.inflections do |inflect|
+ inflect.uncountable %w(
+ award_emoji
+ container_repository_registry
+ design_registry
+ event_log
+ file_registry
+ group_view
+ job_artifact_registry
+ lfs_object_registry
+ package_file_registry
+ project_auto_devops
+ project_registry
+ project_statistics
+ system_note_metadata
+ vulnerabilities_feedback
+ vulnerability_feedback
+ )
+ inflect.acronym 'EE'
+ inflect.acronym 'CSP'
+end