Skip to content

Commit f9f2151

Browse files
committed
Fix default inferrer being frozen.
1 parent f817c75 commit f9f2151

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/jsonapi/rails/controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ def deserializable_resource(key, options = {}, &block)
8787
# Overridden by the `class` renderer option.
8888
# @return [Hash{Symbol=>Class}]
8989
def jsonapi_class
90-
JSONAPI::Rails.config[:jsonapi_class]
90+
JSONAPI::Rails.config[:jsonapi_class].dup
9191
end
9292

9393
# Hook for serializable class mapping (for errors).
9494
# Overridden by the `class` renderer option.
9595
# @return [Hash{Symbol=>Class}]
9696
def jsonapi_errors_class
97-
JSONAPI::Rails.config[:jsonapi_errors_class]
97+
JSONAPI::Rails.config[:jsonapi_errors_class].dup
9898
end
9999

100100
# Hook for the jsonapi object.

0 commit comments

Comments
 (0)