Project

General

Profile

Refactor #34646

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

Move initialization from application.rb into initializer

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

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

Description

Tidy up application.rb and move Foreman related initialization into initializer

Associated revisions

Revision 7fa5c261 (diff)
Added by Ondřej Ezr 3 months ago

Fixes #34646 - move initialization into initializer (#9155)

Tidies up application.rb by moving initialization steps into initializer.
This also makes sure that Facets are not the first subclass inheriting from ApplicationRecord.
Facets being first derails Rails initialization.

History

#1 Updated by The Foreman Bot 3 months ago

  • Assignee set to Ondřej Ezr
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/9155 added

#2 Updated by The Foreman Bot 3 months ago

  • Fixed in Releases 3.3.0 added

#3 Updated by Ondřej Ezr 3 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF