Fix implicit hash conversion issue
This commit is contained in:
parent
958b45de92
commit
0ca5f19509
@ -76,7 +76,7 @@ module YiffRest
|
|||||||
render(json: {
|
render(json: {
|
||||||
success: true,
|
success: true,
|
||||||
data: {
|
data: {
|
||||||
**APIImage.categories.find { |c| c.db == category },
|
**APIImage.categories.find { |c| c.db == category }.to_h,
|
||||||
count: count,
|
count: count,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
@ -61,4 +61,6 @@ class APICategory
|
|||||||
count: count,
|
count: count,
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
alias to_h as_json
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user