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.
2 parents c54532a + aa7d0ec commit be0b1e8Copy full SHA for be0b1e8
lib/active_model/serializer/railtie.rb
@@ -12,6 +12,10 @@ class Railtie < Rails::Railtie
12
include app.routes.url_helpers
13
end
14
15
+
16
+ config.to_prepare do
17
+ ActiveModel::Serializer.serializers_cache.clear
18
+ end
19
20
21
lib/active_model_serializers.rb
@@ -14,9 +14,6 @@
ActionController::Base.send(:include, ::ActionController::Serialization)
ActionController::TestCase.send(:include, ::ActionController::SerializationAssertions)
- ActionDispatch::Reloader.to_prepare do
- ActiveModel::Serializer.serializers_cache.clear
- end
rescue LoadError
22
# rails not installed, continuing
0 commit comments