diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2015-05-03 15:00:58 +0200 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2015-05-03 15:00:58 +0200 |
commit | 78da7b1c486cb5c07a51e727a497e882bea4bc55 (patch) | |
tree | 5ae1364af111f97504f254a8469f04553a1c9169 /lib/api/helpers.rb | |
parent | 5f3eef6e56ac4908c3fc67ca238340a3caf5a9b8 (diff) | |
parent | 747232eeda7c79ea65a5c208399a6c72872ff4bc (diff) | |
download | gitlab-ce-78da7b1c486cb5c07a51e727a497e882bea4bc55.tar.gz |
Merge branch 'master' of github.com:gitlabhq/gitlabhq
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index be133a2920b..85e9081680d 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -173,6 +173,10 @@ module API end end + def filter_by_iid(items, iid) + items.where(iid: iid) + end + # error helpers def forbidden!(reason = nil) |