OSDN Git Service

Change web_url_without scheme to web_url_without_protocol.
authorBruno Albuquerque <bga@bug-br.org.br>
Mon, 20 Jan 2014 11:26:34 +0000 (06:26 -0500)
committerBruno Albuquerque <bga@bug-br.org.br>
Mon, 20 Jan 2014 11:26:34 +0000 (06:26 -0500)
app/models/project.rb
app/views/layouts/_head.html.haml

index add54eb..b022bb4 100644 (file)
@@ -201,7 +201,7 @@ class Project < ActiveRecord::Base
     [Gitlab.config.gitlab.url, path_with_namespace].join("/")
   end
 
-  def web_url_without_scheme
+  def web_url_without_protocol
     web_url.split("://")[1]
   end
 
index 2fe3148..6d8139a 100644 (file)
@@ -23,5 +23,5 @@
 
   -# Go repository retrieval support.
   - if controller_name == 'projects' && action_name == 'show'
-    %meta{name: "go-import", content: "#{@project.web_url_without_scheme} git #{@project.web_url}.git"}
+    %meta{name: "go-import", content: "#{@project.web_url_without_protocol} git #{@project.web_url}.git"}