diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-01-31 03:26:40 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-07 01:12:24 +0300 |
commit | c8b63a28afa811881b617546fe94a19378585a04 (patch) | |
tree | 2b1bd2e9d52e059de0589a014f518f23e9b71ca3 /app/models/repository.rb | |
parent | 3aa1264dc6c0de3625bb1a2d6a0ee90140a2f519 (diff) |
Improve performance of finding last deployed environment
Diffstat (limited to 'app/models/repository.rb')
-rw-r--r-- | app/models/repository.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index ba9c038b66d..c043753507e 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -1190,6 +1190,7 @@ class Repository def route_map_for(sha) blob = blob_at(sha, ROUTE_MAP_PATH) return unless blob + blob.load_all_data!(self) blob.data end @@ -1197,6 +1198,7 @@ class Repository def gitlab_ci_yml_for(sha) blob = blob_at(sha, GITLAB_CI_YML_PATH) return unless blob + blob.load_all_data!(self) blob.data end |