diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-07-12 23:15:08 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-07-12 23:15:08 +0800 |
commit | e383254070baf8a4701e3a10b7cc699f03cefff4 (patch) | |
tree | 5537a7c8f87f9f8277ad150ebc04814fc85b5e57 /config/routes.rb | |
parent | a96e9aa0d3f703e61a415d2b0532f3a96d90ba51 (diff) | |
download | gitlab-ce-e383254070baf8a4701e3a10b7cc699f03cefff4.tar.gz |
Add all the tests and fix stuffs along the way:
It turns out they are different:
builds.success.latest.first
and
builds.latest.success.first
If we put success first, that latest would also filter via success,
and which is what we want here.
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 10b497d05a0..32b00652bb3 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -736,7 +736,7 @@ Rails.application.routes.draw do resources :artifacts, only: [] do collection do get :search, path: ':ref/:build_name/*path', format: false, - constraints: { ref: %r{.+(?=/)} } # ref could have / + constraints: { ref: /.+/ } # ref could have / end end |