2.4.2 (27 November 2020)
* Implements Zeitwerk::Loader#on_load, which allows you to configure
blocks of code to be executed after a certain class or module have
been loaded:
# config/environments/development.rb
loader.on_load("SomeApiClient") do
SomeApiClient.endpoint = "https://api.dev"
# config/environments/production.rb
loader.on_load("SomeApiClient") do
SomeApiClient.endpoint = "https://api.prod"
end
See the documentation for further details.
2.4.1 (29 October 2020)
* Use __send__ instead of send internally.