Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-31 13:27:05 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-31 13:27:05 +0300
commit60cdd2bcc894cf9cce4892570bf6a146dc45e536 (patch)
treef2564895a487658eed25f73bd67a53b7c96ea99d /app/models/container_repository.rb
parenta7466af3a6f31311d64654631a2ea2740c42b88e (diff)
Add specs for container repository factory method
Diffstat (limited to 'app/models/container_repository.rb')
-rw-r--r--app/models/container_repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/container_repository.rb b/app/models/container_repository.rb
index 052d93c3bdc..e27369c10d6 100644
--- a/app/models/container_repository.rb
+++ b/app/models/container_repository.rb
@@ -58,7 +58,7 @@ class ContainerRepository < ActiveRecord::Base
end
end
- def self.create_from_path(path)
+ def self.create_from_path!(path)
self.create(project: path.repository_project,
name: path.repository_name)
end