Skip to content

Commit

Permalink
feat: clear polymorphic lookup after initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
bf4 committed Jan 24, 2024
1 parent ed41c8c commit 93ac314
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/jsonapi/resources/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ class Railtie < ::Rails::Railtie
::JSONAPI::MimeTypes.parser.call(body)
}
end

initializer "jsonapi_resources.initialize", after: :initialize do
JSONAPI::Utils::PolymorphicTypesLookup.polymorphic_types_lookup_clear!
end
end
end
end

0 comments on commit 93ac314

Please sign in to comment.