mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Use symbolized keys for json hash
They will be converted to strings when rendered as JSON.
This commit is contained in:
parent
92e9a66e97
commit
b7442e741c
@ -21,11 +21,11 @@ module ActiveModelSerializers
|
|||||||
|
|
||||||
def as_json
|
def as_json
|
||||||
{
|
{
|
||||||
"self": location_url,
|
self: location_url,
|
||||||
"first": first_page_url,
|
first: first_page_url,
|
||||||
"prev": prev_page_url,
|
prev: prev_page_url,
|
||||||
"next": next_page_url,
|
next: next_page_url,
|
||||||
"last": last_page_url
|
last: last_page_url
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user