Commit 2f20d83502f4e8053ac02a999a20cfae53fc5cf0
1 parent
22ec3277
Exists in
master
and in
1 other branch
github_url_to_file fixed
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
app/models/app.rb
@@ -125,6 +125,7 @@ class App | @@ -125,6 +125,7 @@ class App | ||
125 | end | 125 | end |
126 | 126 | ||
127 | def github_url_to_file(file) | 127 | def github_url_to_file(file) |
128 | + file = "/#{file}" unless file.start_with? '/' | ||
128 | "#{github_url}/blob/#{repo_branch + file}" | 129 | "#{github_url}/blob/#{repo_branch + file}" |
129 | end | 130 | end |
130 | 131 |