lib/dry/rails/boot/controller_helpers.rb in dry-rails-0.2.0 vs lib/dry/rails/boot/controller_helpers.rb in dry-rails-0.2.1
- old
+ new
@@ -5,7 +5,11 @@
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