Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/jsonapi/resources/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ class Railtie < ::Rails::Railtie
'by setting `warn_on_eager_loading_disabled` to false.'
end
end
config.to_prepare do
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

::JSONAPI::Resource._clear_resource_type_to_klass_cache
::JSONAPI::Resource._clear_model_to_resource_type_cache
end
end
end
end