diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-02 15:28:27 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-02 15:28:27 +0300 |
commit | 20c2e90222ac0b12a4cc3fb9b9455232f6e250ae (patch) | |
tree | aad232b129a6822f383076777a82da5abb1c3c5f /lib/api | |
parent | 9ccef9a7b3c8bd007c897467c0fb944831db3fab (diff) | |
download | gitlab-ce-20c2e90222ac0b12a4cc3fb9b9455232f6e250ae.tar.gz |
Refactor finders. Prevent circular dependency error
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/issues.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/api/issues.rb b/lib/api/issues.rb index 299fd7e2399..043ce04d321 100644 --- a/lib/api/issues.rb +++ b/lib/api/issues.rb @@ -6,9 +6,9 @@ module API helpers do def filter_issues_state(issues, state = nil) case state - when 'opened' then issues.opened - when 'closed' then issues.closed - else issues + when 'opened' then issues.opened + when 'closed' then issues.closed + else issues end end end |