lib/integrity/helpers/urls.rb in integrity-integrity-0.1.9.3 vs lib/integrity/helpers/urls.rb in integrity-integrity-0.1.10
- old
+ new
@@ -15,15 +15,15 @@
def project_path(project, *path)
project_url(project, path).path
end
- def commit_url(commit)
- project_url(commit.project, "commits", commit.identifier)
+ def commit_url(commit, *path)
+ project_url(commit.project, ["commits", commit.identifier, *path].flatten)
end
def commit_path(commit, *path)
- commit_url(commit).path
+ commit_url(commit, *path).path
end
def build_path(build, *path)
warn "#build_path is deprecated, use #commit_path instead (#{caller[0]})"
commit_path build.commit, *path