Skip to content

Commit b7442e7

Browse files
Use symbolized keys for json hash
They will be converted to strings when rendered as JSON.
1 parent 92e9a66 commit b7442e7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/active_model_serializers/adapter/json_api/pagination_links.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ def initialize(collection, adapter_options)
2121

2222
def as_json
2323
{
24-
"self": location_url,
25-
"first": first_page_url,
26-
"prev": prev_page_url,
27-
"next": next_page_url,
28-
"last": last_page_url
24+
self: location_url,
25+
first: first_page_url,
26+
prev: prev_page_url,
27+
next: next_page_url,
28+
last: last_page_url
2929
}
3030
end
3131

0 commit comments

Comments
 (0)