We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fec511 commit 5c41214Copy full SHA for 5c41214
lib/active_model_serializers.rb
@@ -9,7 +9,7 @@
9
require 'action_controller/serialization'
10
require 'action_controller/serialization_test_case'
11
12
- ActiveSupport.on_load(:after_initialize) do
+ ActiveSupport.on_load(:action_controller) do
13
if ::ActionController::Serialization.enabled
14
ActionController::Base.send(:include, ::ActionController::Serialization)
15
ActionController::TestCase.send(:include, ::ActionController::SerializationAssertions)
0 commit comments