# frozen_string_literal: true Dry::System.register_provider_source(:controller_helpers, group: :rails) do prepare do require "dry/rails/features/controller_helpers" end start do ApplicationController.include(Dry::Rails::Features::ControllerHelpers) if defined?(ActionController::API) ActionController::API.include(Dry::Rails::Features::ControllerHelpers) end end end