diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-03 22:57:32 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-03 22:57:32 +0300 |
commit | 93f15a49537a47e6a1dead5cec8553b974cd464d (patch) | |
tree | 9c9257607b7d090f4e74a103a1fdb5fbb2b4a3e7 /lib/api/issues.rb | |
parent | f932996e10deccb2fba97af90b9ac336391fcf87 (diff) | |
download | gitlab-ce-93f15a49537a47e6a1dead5cec8553b974cd464d.tar.gz |
Explicit order of issues in API. Fixes specs for mysql db
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/api/issues.rb')
-rw-r--r-- | lib/api/issues.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/issues.rb b/lib/api/issues.rb index 043ce04d321..15a49b452bd 100644 --- a/lib/api/issues.rb +++ b/lib/api/issues.rb @@ -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 |