Explicit order of issues in API. Fixes specs for mysql db

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-09-03 22:57:32 +03:00
parent f932996e10
commit 93f15a4953
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -8,7 +8,7 @@ module API
case state
when 'opened' then issues.opened
when 'closed' then issues.closed
else issues
else issues.order('id DESC')
end
end
end