diff options
author | Rémy Coutable <remy@rymai.me> | 2016-04-13 11:25:42 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-04-13 16:07:04 +0200 |
commit | 02cfbf0db5dda8ca86f4811e5d5cb055a8cc5cfb (patch) | |
tree | 2b37a9ba2144bffc8544847eb157c4dc298c2c17 /app/services/issues/base_service.rb | |
parent | bbf49ffca1c1be65567afa76961d176e57d40150 (diff) | |
download | gitlab-ce-02cfbf0db5dda8ca86f4811e5d5cb055a8cc5cfb.tar.gz |
Refactor and expose only Gitlab::UrlBuilder.build(record)simplify-gitlab-url_builder-15202
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/services/issues/base_service.rb')
-rw-r--r-- | app/services/issues/base_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/issues/base_service.rb b/app/services/issues/base_service.rb index 770f32de944..772f5c5fffa 100644 --- a/app/services/issues/base_service.rb +++ b/app/services/issues/base_service.rb @@ -3,7 +3,7 @@ module Issues def hook_data(issue, action) issue_data = issue.to_hook_data(current_user) - issue_url = Gitlab::UrlBuilder.new(:issue).build(issue.id) + issue_url = Gitlab::UrlBuilder.build(issue) issue_data[:object_attributes].merge!(url: issue_url, action: action) issue_data end |