Skip to content

Commit 93ac314

Browse files
committed
feat: clear polymorphic lookup after initialize
1 parent ed41c8c commit 93ac314

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/jsonapi/resources/railtie.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ class Railtie < ::Rails::Railtie
1818
::JSONAPI::MimeTypes.parser.call(body)
1919
}
2020
end
21+
22+
initializer "jsonapi_resources.initialize", after: :initialize do
23+
JSONAPI::Utils::PolymorphicTypesLookup.polymorphic_types_lookup_clear!
24+
end
2125
end
2226
end
2327
end

0 commit comments

Comments
 (0)