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