lib/dry/rails/boot/safe_params.rb in dry-rails-0.4.0 vs lib/dry/rails/boot/safe_params.rb in dry-rails-0.5.0
- old
+ new
@@ -1,8 +1,8 @@
# frozen_string_literal: true
-Dry::System.register_component(:safe_params, provider: :rails) do
- init do
+Dry::System.register_provider_source(:safe_params, group: :rails) do
+ prepare do
require "dry/rails/features/safe_params"
end
start do
ApplicationController.include(Dry::Rails::Features::SafeParams)