diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-13 12:54:02 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-13 12:54:02 +0300 |
commit | b5b6c7b17527cc2360066557207af935bec2168f (patch) | |
tree | 5d1eb736f0d9a892f73dfff7f0739d75e7359079 /app/models/container_repository.rb | |
parent | 259108ada340a0f1d49e2d80d1c433a377983e1c (diff) |
Sanitize container repository path in model class
Diffstat (limited to 'app/models/container_repository.rb')
-rw-r--r-- | app/models/container_repository.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/container_repository.rb b/app/models/container_repository.rb index 82f4182d59a..d0c94d3b694 100644 --- a/app/models/container_repository.rb +++ b/app/models/container_repository.rb @@ -20,7 +20,8 @@ class ContainerRepository < ActiveRecord::Base end def path - @path ||= [project.full_path, name].select(&:present?).join('/') + @path ||= [project.full_path, name] + .select(&:present?).join('/').downcase end def location |