Project

General

Profile

Actions

Refactor #33895

closed

Feature #29991: Enable Zeitwerk autoload mode for Rails 6+

setup Zeitwerk inflector

Added by Ondřej Ezr about 3 years ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Zeitwerk uses constant to snake case to resolve the paths, if we want to change some constants to be Uppercase, we need to use inflector

From Adams [groundwork PR](https://github.com/theforeman/foreman/pull/8282), tho we might want to review the list:
'ui' => 'UI',
'proxy_api' => 'ProxyAPI',
'sti' => 'STI',
'dhcp' => 'DHCP',
'dns' => 'DNS',
'tftp' => 'TFTP',
'external_ipam' => 'ExternalIPAM',
'bmc' => 'BMC',
'ui_notifications' => 'UINotifications',
'ssh_provision' => 'SSHProvision',
'ipam' => 'IPAM',
'sso' => 'SSO',
'ec2' => 'EC2',
'gce' => 'GCE',
'aaaa_record' => 'AAAARecord',
'aix' => 'AIX',
'ptr4_record' => 'PTR4Record',
'ptr6_record' => 'PTR6Record',
'nxos' => 'NXOS',
'vrp' => 'VRP',


Subtasks 1 (1 open0 closed)

Refactor #33896: Document how plugins can adjust Zeitwerk inflectorNewActions
Actions

Also available in: Atom PDF