fix error
This commit is contained in:
parent
47f23a0cdd
commit
d203d79c8b
|
@ -30,7 +30,7 @@ class RulingTemplatesController < ApplicationController
|
||||||
if r_template.git_url.blank?
|
if r_template.git_url.blank?
|
||||||
render :json => {url: r_template.template_zip.url,type: 'zip'}.to_json
|
render :json => {url: r_template.template_zip.url,type: 'zip'}.to_json
|
||||||
else
|
else
|
||||||
render :json => {url: r_template.git_url,branch: r_template.git_branch,type: 'git'}.to_json
|
render :json => {url: r_template.git_url+'.git',branch: r_template.git_branch,type: 'git'}.to_json
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue