summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2015-04-04 17:44:52 -0700
committerJesse Morgan <jesse@jesterpm.net>2015-04-04 17:44:52 -0700
commit05fbf7c01c7d92efc08d603f9970b688a5ec0abe (patch)
treedf7086378d5bcd4049507212383071ba37459666 /app
parent59218aaef6041b3467996908c70fa50d3a5e49fe (diff)
Adding href field to json.HEADmaster
Diffstat (limited to 'app')
-rw-r--r--app/views/downloads/index.json.jbuilder1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/downloads/index.json.jbuilder b/app/views/downloads/index.json.jbuilder
index 9933fd9..09c6faa 100644
--- a/app/views/downloads/index.json.jbuilder
+++ b/app/views/downloads/index.json.jbuilder
@@ -1,3 +1,4 @@
json.array!(@downloads) do |download|
json.extract! download, :id, :name, :filename, :type, :description, :hits
+ json.href request.base_url + download_path(download.filename)
end