mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16: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
|
||||
{
|
||||
"self": location_url,
|
||||
"first": first_page_url,
|
||||
"prev": prev_page_url,
|
||||
"next": next_page_url,
|
||||
"last": last_page_url
|
||||
self: location_url,
|
||||
first: first_page_url,
|
||||
prev: prev_page_url,
|
||||
next: next_page_url,
|
||||
last: last_page_url
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user