Sean Handley
1 min readFeb 21, 2019

--

Sure!

Zeitwerk is a new code loader for Ruby. It is efficient, thread-safe, and matches Ruby semantics for constants.

Given a conventional file structure, Zeitwerk loads your project’s classes and modules on demand meaning you don’t need to write require calls for your own files.

To enable it in Rails 6, simply set

config.autoloader == :zeitwerk

in your environment files.

More info here: https://github.com/fxn/zeitwerk
and here: https://github.com/rails/rails/pull/35235

--

--

Sean Handley
Sean Handley

Written by Sean Handley

Engineer, leader, open-source fan.

No responses yet