# this CANVAS_ZEITWERK constant flag is defined in canvas' "application.rb"
# from an env var. It should be temporary,
# and removed once we've fully upgraded to zeitwerk autoloading.
if defined?(CANVAS_ZEITWERK) && CANVAS_ZEITWERK
  Rails.autoloaders.each do |autoloader|
    autoloader.inflector.inflect(
      "rest" => "REST",
      "sfu" => "SFU"
    )
  end
end

Rails.autoloaders.each do |autoloader|
  autoloader.inflector.inflect(
    "rest" => "REST",
    "sfu" => "SFU"
  )
end

Remove CANVAS_ZEITWERK check in sfu_api plugin
Remove CANVAS_ZEITWERK check in sfu_api plugin

This is no longer needed as Zeitwerk is now the only autoloader.

Related upstream commits where the constant was removed:

* b647152aaf0669fb45814b86e0187b511751f24c
* f8e9fdc35c2b5112501fe58371674aae692e07cf
