diff options
author | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-03-02 18:21:53 +0000 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-03-07 21:59:39 +0100 |
commit | 337cb45226cfc4955fdd79a15088522a91058b3c (patch) | |
tree | 2a396d734cc30c1d8a2f0bf3a88e0829c31f04e9 | |
parent | 68d6f5bce19bac95e63de165f3e9597273ef97b1 (diff) | |
download | gitlab-ce-337cb45226cfc4955fdd79a15088522a91058b3c.tar.gz |
removes automatic setting of main_language to project for it to set a main language you have now to make a commit to the project
-rw-r--r-- | app/models/project.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 34787f5fa3c..137fa42a9b9 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -953,14 +953,4 @@ class Project < ActiveRecord::Base def wiki @wiki ||= ProjectWiki.new(self, self.owner) end - - def main_language - language = read_attribute(:main_language) - - return language if language - - update_attributes(main_language: repository.main_language) - - read_attribute(:main_language) - end end |