Skip to content

Commit a210e99

Browse files
NullVoxPopulibf4
authored andcommitted
add an extra format token to the primary data string so that JRuby doesn't break
1 parent 76dfba9 commit a210e99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_model_serializers/json_pointer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module JsonPointer
44

55
POINTERS = {
66
attribute: '/data/attributes/%s'.freeze,
7-
primary_data: '/data'.freeze
7+
primary_data: '/data%s'.freeze
88
}.freeze
99

1010
def new(pointer_type, value = nil)

0 commit comments

Comments
 (0)