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 e8d92da commit 30445f1
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 @@ -19,6 +19,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 30445f1

Please sign in to comment.