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:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-17 00:15:40 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-05-17 00:15:40 +0300
commiteb42f95c184536da6fe6ac5286d54f7282dbfbab (patch)
treea1a04f0ed23bfd8a77747ced020ed03d92b955c8 /app/models/project.rb
parenta26ec8a10660ca6ffcf49abac6ddad57fd99f80d (diff)
parent8b15628dd0de2474ad662b8d78a7c9a466e2a296 (diff)
Merge remote-tracking branch 'origin/master' into docker-registry-view
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index a3eb7d83e49..8e80a6b5c01 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -50,6 +50,8 @@ class Project < ActiveRecord::Base
attr_accessor :new_default_branch
attr_accessor :old_path_with_namespace
+ alias_attribute :title, :name
+
# Relations
belongs_to :creator, foreign_key: 'creator_id', class_name: 'User'
belongs_to :group, -> { where(type: Group) }, foreign_key: 'namespace_id'