lib/dry/rails/boot/controller_helpers.rb in dry-rails-0.4.0 vs lib/dry/rails/boot/controller_helpers.rb in dry-rails-0.5.0
- old
+ new
@@ -1,8 +1,8 @@
# frozen_string_literal: true
-Dry::System.register_component(:controller_helpers, provider: :rails) do
- init do
+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)