Fix to_prepare warning

This commit is contained in:
Kir Shatrov
2017-04-18 11:15:36 -04:00
parent c54532a2ae
commit aa7d0ec1c9
2 changed files with 4 additions and 3 deletions

View File

@@ -12,6 +12,10 @@ module ActiveModel
include app.routes.url_helpers
end
end
config.to_prepare do
ActiveModel::Serializer.serializers_cache.clear
end
end
end