summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-03-02 13:01:00 +0000
committerYorick Peterse <yorickpeterse@gmail.com>2016-03-07 21:59:39 +0100
commit93fb4ce2c5f9c7db40a0ab698cd4812a5cb7373b (patch)
treeeae3b9c4a0ec2698dc65bdb91451dd8086e93079
parent4b3f3167a4d7f1b1415052e350bc1f79ef5528dc (diff)
downloadgitlab-ce-93fb4ce2c5f9c7db40a0ab698cd4812a5cb7373b.tar.gz
removes redundant self
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 470fa2194de..a8731514b9f 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -89,7 +89,7 @@ class Project < ActiveRecord::Base
# checks if the language main language of the project changed
before_save :check_main_language
def check_main_language
- if self.commit_count_changed?
+ if commit_count_changed?
self.main_language = repository.main_language
end
end