lib/rubanok/railtie.rb in rubanok-0.1.1 vs lib/rubanok/railtie.rb in rubanok-0.1.3
- old
+ new
@@ -6,8 +6,14 @@
ActiveSupport.on_load(:action_controller) do
require "rubanok/rails/controller"
ActionController::Base.include Rubanok::Controller
end
+
+ ActiveSupport.on_load(:action_controller_api) do
+ require "rubanok/rails/controller"
+
+ ActionController::API.include Rubanok::Controller
+ end
end
end
end