Commit 337cb452 authored by tiagonbotelho's avatar tiagonbotelho Committed by Yorick Peterse

removes automatic setting of main_language to project for it to set a main...

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
parent 68d6f5bc
...@@ -953,14 +953,4 @@ class Project < ActiveRecord::Base ...@@ -953,14 +953,4 @@ class Project < ActiveRecord::Base
def wiki def wiki
@wiki ||= ProjectWiki.new(self, self.owner) @wiki ||= ProjectWiki.new(self, self.owner)
end 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 end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment