Use symbolized keys for json hash

They will be converted to strings when rendered as JSON.
This commit is contained in:
mecampbellsoup 2017-06-14 12:52:29 -04:00
parent 92e9a66e97
commit b7442e741c

View File

@ -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