5416: Fix protected method that should have been public.
authorTom Clegg <tom@curoverse.com>
Mon, 20 Apr 2015 20:43:40 +0000 (16:43 -0400)
committerTom Clegg <tom@curoverse.com>
Mon, 20 Apr 2015 20:58:51 +0000 (16:58 -0400)
apps/workbench/app/models/repository.rb

index 28f8f0cc91124ceafd3dfce682b140c1a740659f..b9b9ce3359dcaa148432446b438aba50edbbadf5 100644 (file)
@@ -57,6 +57,12 @@ class Repository < ArvadosBase
     @buggy_git_version
   end
 
+  # http_fetch_url returns the first http:// or https:// url (if any)
+  # in the api response's clone_urls attribute.
+  def http_fetch_url
+    clone_urls.andand.select { |u| /^http/ =~ u }.first
+  end
+
   protected
 
   # refresh fetches the latest repository content into the local
@@ -68,12 +74,6 @@ class Repository < ArvadosBase
     @fresh = true
   end
 
-  # http_fetch_url returns the first http:// or https:// url (if any)
-  # in the api response's clone_urls attribute.
-  def http_fetch_url
-    clone_urls.andand.select { |u| /^http/ =~ u }.first
-  end
-
   # run_git sets up the ARVADOS_API_TOKEN environment variable,
   # creates a local git directory for this repository if necessary,
   # executes "git --git-dir localgitdir {args to run_git}", and