lib/dry/rails/boot/safe_params.rb in dry-rails-0.2.0 vs lib/dry/rails/boot/safe_params.rb in dry-rails-0.2.1
- old
+ new
@@ -5,7 +5,11 @@
require "dry/rails/features/safe_params"
end
start do
ApplicationController.include(Dry::Rails::Features::SafeParams)
+
+ if defined?(ActionController::API)
+ ActionController::API.include(Dry::Rails::Features::SafeParams)
+ end
end
end